Difference between revisions of "LlResetOtherScript"

From Second Life Wiki
Jump to navigation Jump to search
Line 3: Line 3:
|func_id=249|func_sleep=0.0|func_energy=10.0
|func_id=249|func_sleep=0.0|func_energy=10.0
|func=llResetOtherScript|p1_type=string|p1_name=name
|func=llResetOtherScript|p1_type=string|p1_name=name
|func_footnote
|func_footnote=On script reset...
*The current event/function is exited without further execution or return.
*All global variables are set to their defaults
*The event queue is cleared.
*The [[default]] state is set as the active state
**If it has a [[state_entry]] event, then it is queued.
|func_desc=Resets script '''name'''
|func_desc=Resets script '''name'''
|return_text
|return_text

Revision as of 07:57, 19 March 2007

Summary

Function: llResetOtherScript( string name );

Resets script name

• string name a script in the inventory of the prim this script is in

On script reset...

  • The current event/function is exited without further execution or return.
  • All global variables are set to their defaults
  • The event queue is cleared.
  • The default state is set as the active state

Caveats

  • If name is missing from the prim's inventory or it is not a script then an error is shouted on DEBUG_CHANNEL.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

•  llResetScript
•  llGetScriptState
•  llSetScriptState

Deep Notes

Search JIRA for related Issues

Signature

function void llResetOtherScript( string name );