removeWeaponGlobal can be used to remove pylon weapons from vehicles. However, for some CSLA helicopters, not all pylon weapons can be removed with this command. I could not even begin to speculate why this is the case.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Config
Steps To Reproduce
- Place one of the following CSLA helicopters with the player as the pilot: Mi-24V, AH-1F, MH-60A DAP (Pylons)
- Start the mission
- Run this code in the debug console:
{ systemChat getText (configFile >> "CfgMagazines" >> _x >> "pylonWeapon"); (vehicle player) removeWeaponGlobal getText (configFile >> "CfgMagazines" >> _x >> "pylonWeapon"); } forEach getPylonMagazines (vehicle player);
- Note that all the aircraft's pylon weapons are logged to chat as they are "removed". Note also that the aircraft still has some of the weapons supposedly removed - for example, the MH-60 DAP's rocket pods are still available for the pilot to use.
- Repeat this test with other aircraft such as the Mi-17 (Pylons) or the vanilla AH-99 Blackfoot. Note that for those aircraft, all pylon weapons are correctly removed.
Event Timeline
Comment Actions
The issue with removeWeaponGlobal not fully removing all pylon weapons from some CSLA helicopters like the Mi-24V, AH-1F, and MH-60A DAP appears to stem from improper weapon-magazine linking in the config files. While the command logs the correct pylon weapons, some still remain usable, suggesting discrepancies in how pylon weapons are configured or bound to the vehicle. This issue is reproducible and doesn't occur in other aircraft like the Mi-17 or AH-99, indicating a DLC-specific config oversight. A config review of CfgMagazines and weapon associations for the affected helicopters is recommended to resolve the inconsistency.