Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local still = elements.allocate("TPT" , "STLW")
- elements.element(still, elements.element(elements.DEFAULT_PT_WATR))
- elements.property(still, "Name" , "STWTR")
- elements.property(still, "Description" , "Still water.")
- elements.property(still, "HighTemperature", 10001)
- elements.property(elem.TPT_PT_STLW, "Update",
- function(i,x,y,s,nt) --1
- if math.sqrt(math.pow(sim.partProperty(i, "vx"),2)+math.pow(sim.partProperty(i, "vy"),2)) > 0.5 then --2
- sim.partKill(i)
- end --2
- end --1
- ) --*1
- local flow = elements.allocate("TPT" , "FWLW")
- elements.element(flow, elements.element(elements.DEFAULT_PT_WATR))
- elements.property(flow, "Name" , "FLWTR")
- elements.property(flow, "Description" , "Flowing water.")
- elements.property(flow, "HighTemperature", 10001)
- elements.property(elem.TPT_PT_FWLW, "Update",
- function(i,x,y,s,nt) --1
- if math.random(1,2) == 1 then --2
- if math.sqrt(math.pow(sim.partProperty(i, "vx"),2)+math.pow(sim.partProperty(i, "vy"),2)) < 0.1 then --3
- sim.partKill(i)
- end --3
- end --2
- end --1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement