RegisterForSingleLOSLost - Form

Revision as of 09:02, 12 September 2012 by imported>JLundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ActiveMagicEffect Script, Alias Script, and Form Script

Registers this active magic effect/alias/form to receive a single lost LOS event. If the viewer is not currently looking at the target, the event will be sent immediately. Only the specific form, alias, or magic effect that registered will get the event - it will not be relayed to attached aliases or magic effects.

SyntaxEdit

Function RegisterForSingleLOSLost(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
RegisterForSingleLOSLost(Game.GetPlayer(), Kettle)

NotesEdit

  • See the notes for RegisterForLOS for limitations, speed considerations, and other notes.

See AlsoEdit