Jump to content
Devastator_cm

How to find if a weapon can use laser lock

Recommended Posts

 Hi Guys,

is there a way to figure out a weapong can use laser lock via script?
I need to find, i.e. if gbu-12 can use laser lock or not

Thanks in advance

Share this post


Link to post
Share on other sites

The following script will allow you to check the CfgAmmo entry for 'laserLock'

_ammoClassName = "Bo_GBU12_LGB";
_laserLock = [(configFile >> "CfgAmmo" >> _ammoClassName), "laserLock", 0] call BIS_fnc_returnConfigEntry;

_laserLock now returns 1 is yes, and 0 if not (even when the laserLock variable is not set).

Share this post


Link to post
Share on other sites

thanks!! That is exactly what I was looking for. I didn't know there is a BIS function to navigate in config structure :)

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

×