Difference between revisions of "Activate"

180 bytes added ,  14:08, 25 November 2007
Notes on NPCs, containers and activating items
imported>Haama
m (→‎Buggy Bug Bug of a Weird, Weird Bug: Fixed Troubleshooting links)
imported>Haama
(Notes on NPCs, containers and activating items)
Line 8: Line 8:
  ActivatorRef.Activate player, 1  
  ActivatorRef.Activate player, 1  


This function makes the object perform its default activation. The default activations are:
This function makes the object perform its default activation. The default activations for the player are:
{|border="1" cellpadding="5" cellspacing="0" align="center"
{|border="1" cellpadding="5" cellspacing="0" align="center"
|-
|-
Line 29: Line 29:
|Reads     
|Reads     
|}
|}
For [[Enable]]d NPCs, activating an item will force them to pick it up (even if they're [[SetUnconscious|unconscious]]. However, containers won't pick up the item.


If the ''RunOnActivateFlag'' is set to 1, then the [[OnActivate]] block of the object will be run ''instead'' of the default activation.
If the ''RunOnActivateFlag'' is set to 1, then the [[OnActivate]] block of the object will be run ''instead'' of the default activation.
Anonymous user