Difference between revisions of "OnActivate"
Jump to navigation
Jump to search
Separated notes on ActionRef
imported>Haama (Fixed notes on when activation occurs, added notes on nesting) |
imported>Haama (Separated notes on ActionRef) |
||
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. | *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]] or [[GetActionRef]] inside the OnActivate block. They won't return the correct ActionRef in any other block. | |||
*This block (and perhaps the entire script --[[User:Haama|Haama]] 18:52, 13 July 2007 (EDT)) runs immediately when called from an external script. There were a few things that were posted before that this should clarify: | *This block (and perhaps the entire script --[[User:Haama|Haama]] 18:52, 13 July 2007 (EDT)) runs immediately when called from an external script. There were a few things that were posted before that this should clarify: |