Jump to content
Sign in to follow this  
beako

line of sight?

Recommended Posts

Hi all,

Does anyone know of a command or short script that check if a unit has line of sight to another unit?

I'm trying to get my UAV to target a unit but had to cheat by attaching a laser to the unit instead. I've tried a bunch of things like assignTarget, knowsAbout, forceaFireWeapon of mounter laser and doFire...etc, but had no luck.

As a workaround, Now i will remove the attached laser whenever the unit goes out of sight from the UAV.

  • Like 1

Share this post


Link to post
Share on other sites

lineIntersects won't detect all rocks, trees and fiolage. You can use terrainIntersectASL together with lineIntersects for that matter.

I assume lineIntersects detects objects with cfg classes that are spawnable while terrainIntersectASL detects stuff related to the map itself which aren't spawnable.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×