Background for Starfield
Member of the ScriptObject script

[DEV SERVER] Loading description...


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

ObjectReferenceakViewer

CK Wiki Description

The ObjectReference that sees the target.

ObjectReferenceakTarget

CK Wiki Description

The ObjectReference that the actor can now see.


Examples

Function SomeFunction()
  RegisterForDetectionLOSLost(Game.GetPlayer(), Kettle) ; Before we can use OnLostLOS we must register.
EndFunction

Event OnLostLOS(ObjectReference akViewer, ObjectReference akTarget)
    ;/ If other registrations had been done, we would want to check the viewer and target
       But since we only registered for one we know what it is
       Since we only did single los lost, we'll only get this once /;
    Debug.Trace("Player just looked away from the kettle, so boil it!")
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends ScriptObject

event OnLostLOS(ObjectReference akViewer, ObjectReference akTarget)
    Debug.trace("Event received - OnLostLOS: akViewer = " + akViewer + " akTarget = " + akTarget)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.