Background for Skyrim SE
Member of the Form script
voidfunctionUnregisterForLOS(ActorakViewer, ObjectReferenceakTarget)Native

Description

Wiki Description

Unregisters this active magic effect/alias/form to stop receiving LOS events from between the viewer and the target.

Documentation Comment

Unregister for any LOS events between the viewer and target


Caveats

CK Wiki - Notes

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


Parameters

ActorakViewer

CK Wiki Description

The Actor that was looking for the target.

ObjectReferenceakTarget

CK Wiki Description

The target the actor was looking for. If the viewer is not the player, this must be an actor.


Examples

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

Auto-Generated Example

Actor myActor__akViewer
ObjectReference myObjectReference__akTarget

myForm__toCallFunctionOn.UnregisterForLOS(myActor__akViewer, myObjectReference__akTarget)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.