It would probably be emp. Was the flash blue? ;D
-- File name: drawrect.lua
function drawPartRect(x, y, w, h, part, coords)
if coords then -- If you want to draw with two points
for ry = y, h, 1 do
for rx = x, w, 1 do
tpt.create(rx,ry,part)
end
end
else -- Otherwise draw with width and height
for ry = y, y+h, 1 do
for rx = x, x+w, 1 do
tpt.create(rx, ry, part)
end
end
end
end-- File name: creator.lua
dofile("drawrect.lua")
x = 20
y = 20
width = 300
height = 300
drawPartRect(x, y, width, height, "ligh", false)
tpt.set_property("tmp2", "4", x, y, width, height) -- mode (-1: remove, 0: branches, 1: bend, 2: branch, 3: destruction, 4: starting)
tpt.set_property("life", "30", x, y, width, height) -- power of strike
tpt.set_property("tmp", "270", x, y, width,height) -- angle from east, counterclockwise
dofile("creator.lua")
!set x ligh 20
!set y ligh 20