Jump to content

Register for LOS


Zorkaz

Recommended Posts

There's no RegisterForLOS in the ScriptObject script, only UnregisterForLOS. It unregisters the script for any LOS events between the viewer and target.

 

You can register for LOS events with the RegisterForDetectionLOSGain / RegisterForDetectionLOSLost / RegisterForDirectLOSGain / RegisterForDirectLOSGain functions.

Link to comment
Share on other sites

The actual function is RegisterForDetectionLOSGain

 

BUT WARNING !!! the LOS functions (OnGainLOS, HasDirectLOS, HasDetectionLOS) are super unreliable or unpredictable and I have totally stopped using them after wasting many many hours trying to document their behavior. I wish you better luck.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...