Difference between revisions of "OnActivate"
Jump to navigation
Jump to search
→Notes: PlayGroup
imported>Bruneauinfo m |
imported>Bruneauinfo (→Notes: PlayGroup) |
||
Line 6: | Line 6: | ||
==Notes== | ==Notes== | ||
*Using OnActivate will prevent normal activation of the object. To use the object's default activation you must call [[Activate]] on it. | *Using OnActivate will prevent normal activation of the object. To use the object's default activation you must call [[Activate]] on it. | ||
*Animations on activators are carried out using PlayGroup. This is helpful if your activator has an animation associated with 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. | *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. |