[DEV SERVER] Loading description...
Caveats
CK Wiki - Notes
- Most of the time you actually want RegisterForDetectionLOSLost instead, as it takes some more things into account and may do a better pick.
- See the notes for RegisterForDirectLOSGain for limitations, speed considerations, and other notes.
Parameters
ObjectReferenceakTarget
CK Wiki Description
The target the actor will be looking for. If the viewer is not the player, this must be an actor.
stringasViewerNode=""
CK Wiki Description
The node on the viewer to cast the LOS check from. If empty, will cast from the object's root.
- Default:""
stringasTargetNode=""
CK Wiki Description
The node on the target to cast the LOS check to. If empty, will cast to the object's root.
- Default:""
Examples
; Register for when the player can't see the kettle
RegisterForDirectLOSLost(Game.GetPlayer(), Kettle); Register for when the player's head can't see the kettle
RegisterForDirectLOSLost(Game.GetPlayer(), Kettle, "Head")Auto-Generated Example
ObjectReference myObjectReference__akViewer
ObjectReference myObjectReference__akTarget
string myString__asViewerNode
string myString__asTargetNode
myScriptObject__toCallFunctionOn.RegisterForDirectLOSLost(myObjectReference__akViewer, myObjectReference__akTarget, myString__asViewerNode, myString__asTargetNode)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
