Difference between revisions of "OnActivate - ObjectReference"

203 bytes added ,  08:39, 15 September 2016
m
→‎Examples: Just a tiny example added.
imported>Plplecuyer
 
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>


Anonymous user