Devastator_cm 434 Posted December 4, 2016 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
UK_Apollo 476 Posted December 5, 2016 Look in the in-game config viewer from the debug console at the weapon/ammo. laserLock = 0 or 1 https://community.bistudio.com/wiki?title=A3_Targeting_config_reference Edit: just saw you mentioned "via script", so this might not be the answer you need. Share this post Link to post Share on other sites
Grezvany13 64 Posted December 5, 2016 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
Devastator_cm 434 Posted December 5, 2016 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