OnEquipped - ObjectReference
Revision as of 13:52, 10 December 2013 by imported>Plplecuyer
Member of: ObjectReference Script
Event called when the object reference has been equipped by an actor.
SyntaxEdit
Event OnEquipped(Actor akActor)
ParametersEdit
- akActor: The actor that equipped this object.
ExamplesEdit
Event OnEquipped(Actor akActor)
if akActor == Game.GetPlayer()
Debug.Trace("We were equipped by the player!")
endIf
endEvent
NotesEdit
- When an object is equipped it is inside a container, which means that you cannot call native functions on it. (Unless it is a persistent reference)