RegisterForDetectionLOSLost - ScriptObject

Revision as of 12:26, 3 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ScriptObject

Registers this script to receive a single OnLostLOS based on actor detection or current player camera view. If the viewer is not currently looking at the target, the event will be sent immediately.

Only the script that registers for an event will receive it. Other scripts attached to the same form, alias, or magic effect will not receive the event unless they also register for it.

SyntaxEdit

Function RegisterForDetectionLOSLost(Actor akViewer, ObjectReference akTarget) native

ParametersEdit

  • akViewer: The Actor that will be looking for the target.
  • akTarget: The target the actor will be looking for. If the viewer is not the player, this must be an actor.

Return ValueEdit

None

ExamplesEdit

; Register for when the player looks away from the kettle
RegisterForDetectionLOSLost(Game.GetPlayer(), Kettle)

NotesEdit

See AlsoEdit