OnOpen - ObjectReference
Revision as of 17:19, 16 August 2010 by imported>Plplecuyer (Created page with 'Category:Scripting Category:Papyrus Category:Events '''Member of:''' ObjectReference Script Event called when the object has finished opening. (Like a door that …')
Member of: ObjectReference Script
Event called when the object has finished opening. (Like a door that has finished animating open)
SyntaxEdit
Event OnOpen(ObjectReference akActionRef)
ParametersEdit
- akActionRef: The reference that caused us to open.
ExamplesEdit
Event OnOpen(ObjectReference akActionRef)
if (akActionRef == Game.GetPlayer())
Debug.Trace("We were opened by the player")
else
Debug.Trace("Someone (or something) else opened us")
endIf
endEvent