setMissileTarget – Talk

From Bohemia Interactive Community
Revision as of 11:53, 11 January 2023 by Lou Montana (talk | contribs) (Text replacement - "<code>" to "<code style="display: block">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

What exactly is the condition to work setMissileTarget and setMissileTargetPos?

I searched config upside down and so far, I think this is the way to detect the ammo class has ability to use setMissileTargetPos.

_ammoClass = (configFile >> "CfgAmmo" >> _class); ({getText (_x >> 'componentType') == 'LaserSensorComponent'} count ("true" configClasses (_ammoClass >> "Components" >> "SensorsManagerComponent" >> "Components")) >= 1 and (getNumber (_ammoClass >> 'manualControl') == 1))

But TBH I'm really not sure this detects accurately. Anyone who has more IQ and knowledge of CfgAmmo configuration, can give me/us more information about this? Does SensorsManagerComponent actually do something in these commands?

-POLPOX (Jun 25 1603 UTC)