OnActivate - ObjectReference/fr

From the CreationKit Wiki
Revision as of 15:23, 17 October 2012 by imported>Plplecuyer (Création de la page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Event called when the object reference is activated.

Syntax

Event OnActivate(ObjectReference akActionRef)

Parameters

Examples

Event OnActivate(ObjectReference akActionRef)
  Debug.Trace("Activated by " + akActionRef)
EndEvent

Notes

This event will still be received if the object reference has had its normal activation processing blocked via BlockActivation. It is also most likely running after the object itself has done (or ignored) it's normal activation processing. Which means, for example, that if normally the object is picked up you won't be able to manipulate it as it will have already been moved into the actor's inventory.

See Also