Description
Wiki Description
Registers this active magic effect/alias/form to receive a single Form.OnLostLOS(...). 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.
Documentation Comment
Register for only the first LOS lost event between the viewer and the target
If the viewer is already not looking at the target, an event will be received almost immediately
If the viewer is not the player, the target must be another actor
Caveats
CK Wiki - Notes
- See the notes for Form.RegisterForLOS(...) for limitations, speed considerations, and other notes.
Parameters
ActorakViewer
CK Wiki Description
The Actor that will be looking for the target.
ObjectReferenceakTarget
CK Wiki Description
The target the actor will be looking for. If the viewer is not the player, this must be an actor.
Examples
; Register for when the player looks away from the kettle
RegisterForSingleLOSLost(Game.GetPlayer(), Kettle)Auto-Generated Example
Actor myActor__akViewer
ObjectReference myObjectReference__akTarget
myForm__toCallFunctionOn.RegisterForSingleLOSLost(myActor__akViewer, myObjectReference__akTarget)Related Pages
- ActiveMagicEffect
- Alias
- Form
- Form.RegisterForLOS(...)
- Form.RegisterForSingleLOSGain(...)
- Form.UnregisterForLOS(...)
- Form.OnGainLOS(...)
- Form.OnLostLOS(...)
