Mod:Creation Kit/RegisterForDirectLOSGain - ScriptObject

Mod:Creation Kit/Category:Scripting Mod:Creation Kit/Category:Papyrus Mod:Creation Kit/Category:Non-Delayed Native Functions Member of: ScriptObject

Registers this script to receive a single OnGainLOS based on a direct LOS pick. If the viewer can currently see the target, the event will be sent immediately.

Only the script that registers for an event will receive it. Other scripts attached to the same form, alias, or magic effect will not receive the event unless they also register for it.

Parameters

 * akViewer: The ObjectReference that will be looking for the target.
 * akTarget: The target the reference will be looking for.
 * asViewerNode: The node on the viewer to cast the LOS check from. If empty, will cast from the object's root.
 * Default: ""
 * asTargetNode: The node on the target to cast the LOS check to. If empty, will cast to the object's root.
 * Default: ""

Return Value
None