LSL Wiki Mirror 10-5-2006: llResetScript

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
llResetScript()

All variables are reset to their default values. All pending events are cleared. The default state becomes active and its state_entry is triggered. This is the same function as clicking "reset" in the script editor.

It can be useful to include llResetScript in the on_rez event if the script uses llGetOwner and will be sold or distributed. This way, any listens set to the owner will reset when the object is rezzed by its new owner.

Compare with llResetOtherScript.


Functions | Script | Reset
There are 2 comments on this page. [Display comments/form]