Difference between revisions of "Activate"

8 bytes added ,  21:18, 16 April 2006
no edit summary
imported>Tegid
(Explained the explaination of Normal Flag and it's uses)
imported>Tegid
Line 49: Line 49:
If the NormalActivationFlag is 1, the calling reference will not bypass any OnActivate script on it.  This flag basically is an override of default activation as represented in the above chart. Use this with care -- if you call Activate on the object itself from inside an OnActivate block you will trigger an infinite loop.
If the NormalActivationFlag is 1, the calling reference will not bypass any OnActivate script on it.  This flag basically is an override of default activation as represented in the above chart. Use this with care -- if you call Activate on the object itself from inside an OnActivate block you will trigger an infinite loop.


When used with care, this can be an extremely powerful tool to cause activates to be used as pseudo function calls between scripted objects and even spells.  The reference passed in can be used as arguments to tell the object being activated what to do.  This use of Activate is not as intended and requires very careful planning and execution.
When used with care, this can be an extremely powerful tool to cause calls to Activate to be used as pseudo function calls between scripted objects and even spells.  The reference passed in can be used as arguments to tell the object being activated what to do.  This use of Activate is not as intended and requires very careful planning and execution.


'''Example 1:'''  
'''Example 1:'''  
Anonymous user