Difference between revisions of "OnActivate"

565 bytes removed ,  12:15, 23 June 2008
→‎Notes: These notes don't really fit here, and are on the Activate page
imported>Haama
(→‎Notes: Oops, tested that long ago)
imported>Haama
(→‎Notes: These notes don't really fit here, and are on the Activate page)
Line 8: Line 8:


*If you want to do something specific depending on what activated the object, use [[IsActionRef]] or [[GetActionRef]] inside the OnActivate block. They won't return the correct ActionRef in any other block.
*If you want to do something specific depending on what activated the object, use [[IsActionRef]] or [[GetActionRef]] inside the OnActivate block. They won't return the correct ActionRef in any other block.
*This block (and the entire script) runs immediately when called from an external script. There were a few things that were posted before that this should clarify:
#Activation occurs before the next line of code of the calling script is processed, and not in the next frame
#Any number of objects can activate one object, within one frame, and they will all be run (though see notes on [[Activate#Nesting|Nesting]])
*It's possible to nest activations. However, you can only have 5-6 nests at any given time (see [[Activate#Nesting|Nesting]] for more information)


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