Karighan Wilde
Member
Join date: 2 Aug 2004
Posts: 29
|
08-06-2004 12:19
Does an object's script save anything between rez? I'm not sure I'm using the right terminology so I'll use an example.
I have an item in inventory. I attach it/wear. Modify it away from its base state/make a global variable. Unattach it without returning to it's base state.
If I attach it again, will it's state be the second state or the base one? Will the variable hold information or will it be blanked out?
|
Jake Cellardoor
CHM builder
Join date: 27 Mar 2003
Posts: 528
|
08-06-2004 12:55
The object should retain its current state, and variables should keep their current values.
If you want to the object to have certain values set whenever it's rezzed, you can put some initialization code in an on_rez() event handler. Note that calling the llResetScript will reset all variables and return the script to the default state.
|
Karighan Wilde
Member
Join date: 2 Aug 2004
Posts: 29
|
08-06-2004 21:41
Cool, thanks 
|