ClearAllWeapons
| Flag: | ClearAllWeapons |
| File(s): | rules(md).ini |
| Values: | Boolean values: yes or no, true or false, 1 or 0 |
| Default: | no |
| Applicable to: | TechnoTypes:
AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes |
This sets the object's Primary, Secondary, ElitePrimary, EliteSecondary, Weapon1, EliteWeapon1, Weapon2 and EliteWeapon2 to blank, meaning the unit will only get weapons if it is an IFV and an infantry boards it. The weapons do remain loaded by the game as if loaded by a weedguy hack.
Notes
Although a VehicleType with Gunner=yes can be equipped with a weapon by passenger (or rather, switched to a weapon other than (Elite)Weapon1 or (Elite)Weapon2), it cannot actually fire nor properly trigger DeployToFire, even virtual weapons like Spawner=yes. Only give the unit an attack cursor and target line without enabling real functionality.
In RA2 Soviet Mission 01, this is also used to clear Occupied weapons at the Iwo Jima Memorial and Washington Pentagon.
- In Yuri's Revenge, the logic for the Occupy weapon has been changed, and it is no longer within the scope of the disabling effect that this flag restricts.
Warning
In Phobos Build #37 and above, when FV acquires a weapon via passenger and displays the Attack Cursor, it will immediately crash.