UnregisterForLOS - ScriptObject

Member of: ScriptObject

Unregisters this script to stop receiving LOS events from between the viewer and the target.

Only the script that unregisters for an event will stop receiving it. Other scripts attached to the same form, alias, or magic effect will still receive the event if they registered for it seperately.

SyntaxEdit

Function UnregisterForLOS(ObjectReference akViewer, ObjectReference akTarget) native

ParametersEdit

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

Return ValueEdit

None

ExamplesEdit

; Unregister for Joe seeing Bob
UnregisterForLOS(Joe, Bob)

NotesEdit

Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.

See AlsoEdit