Difference between revisions of "OnActivate - ObjectReference"
Jump to navigation
Jump to search
m
OnActivate - ObjectReference (edit)
Revision as of 07:39, 15 September 2016
, 07:39, 15 September 2016→Examples: Just a tiny example added.
imported>Plplecuyer (→Notes) |
imported>Goggle m (→Examples: Just a tiny example added.) |
||
Line 19: | Line 19: | ||
Debug.Trace("Activated by " + akActionRef) | Debug.Trace("Activated by " + akActionRef) | ||
EndEvent | EndEvent | ||
; Have the event run if the triggering objectreference is the player. | |||
Event OnActivate(ObjectReference akActionRef) | |||
if akActionRef == Game.GetPlayer() | |||
; your code here. | |||
endif | |||
EndEvent | |||
</source> | </source> | ||