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.