Difference between revisions of "OnActivate"

Jump to navigation Jump to search
No change in size ,  08:00, 21 July 2006
no edit summary
imported>JOG
imported>JOG
Line 5: Line 5:


'''Notes:'''
'''Notes:'''
*Using OnActivate will prevent normal activation of the object. To use the object's default activation you must call [[Activate]] on it. If you want to do something specific depending on what activated the object, use [[IsActionRef]] inside the OnActivate block.
*This block runs when the object was activated in the last frame. When an object is activated several times within the same frame (e.g. by a script using [[Activate]]) the game will ignore all activations but the last one. (I.e. the ActionRef will always be the one of the last activating object.)
*This block runs when the object was activated in the last frame. When an object is activated several times within the same frame (e.g. by a script using [[Activate]]) the game will ignore all activations but the last one. (I.e. the ActionRef will always be the one of the last activating object.)
*Using OnActivate will prevent normal activation of the object. To use the object's default activation you must call [[Activate]] on it. If you want to do something specific depending on what activated the object, use [[IsActionRef]] inside the OnActivate block.


*The activator type of object has NO default activation.  
*The activator type of object has NO default activation.  
Anonymous user

Navigation menu