eventOnGainLOS(ActorakViewer, ObjectReferenceakTarget)
Description
Wiki Description
Event called when a viewer goes from not seeing the target, to seeing the target - if this active magic effect/alias/form is registered for it.
Documentation Comment
LOS event, sent whenever the viewer first sees the target (after registering)
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.
- This event is not relayed to any aliases or magic effects attached to the form.
Parameters
ActorakViewer
CK Wiki Description
The Actor that sees the target.
ObjectReferenceakTarget
CK Wiki Description
The ObjectReference that the actor can now see.
Examples
No human-generated examples found for this event.
Auto-Generated Example
Scriptname MyCoolScript extends ActiveMagicEffect
event OnGainLOS(Actor akViewer, ObjectReference akTarget)
Debug.trace("Event received - OnGainLOS: akViewer = " + akViewer + " akTarget = " + akTarget)
endEventRelated Pages
- ActiveMagicEffect
- Alias
- Form
- Form.RegisterForLOS(...)
- Form.RegisterForSingleLOSGain(...)
- Form.RegisterForSingleLOSLost(...)
- Form.UnregisterForLOS(...)
- Form.OnLostLOS(...)
- Actor.HasLOS(...)
