lets say I'm in the lua console and i enter: tpt.set_property("life", "9999", "dust") then i enter: tpt.register_step(what do i put here to make this ^ go on?)
@gamax92(View Post) Weirdly, I tried with tpt.register_step(setlife()) and it worked one time, tried with tpt.register_step(setlife) worked on every frame
Yes, it can be any name you like, so long as tpt.register_step(function) references that function (matching names).
function anyname() tpt.set_property("life", "9999", "dust") end tpt.register_step(anyname)
Also, something to keep in mind that everyone seems to forget/have trouble with, when a function is looking for a function in it's argument (IE: tpt.register_step(function) ), do not include the parenthesis like in the example above. You only use the parenthesis when you want to call the function, not reference it.