this addMagazine "Magazine Classname";this addWeapon "Weapon Classname"; does not work.
Description
Details
- Legacy ID
- 516536125
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
Spawn a vehicle with a gunner, other than the one that own the weapon. Put this in its init:
this addMagazine "38Rnd_80mm_rockets";this addWeapon "rockets_Skyfire ";
This worked in Arma 2. And allows you to put any weapon on any armed vehicle.
Event Timeline
Why? It is a sandbox command, this isn't dayz so why would they remove a command like this? Seems like something they forgot.
sure.. you have to wait till this midnight(tomorrow night max). We have to process some internal tests before releasing next DEV build to the public
Thanks for looking into the issue! I'll test it too and report back when the new dev build goes out live.
I quickly tested this on Mi-48
- removeAllWeapons heli - doesn't do anything, to remove all weapons one needs to
{heli removeWeapon _x} foreach weapons heli;
- heli removeWeapon "weaponname"/heli addWeapon "weaponname" - does work but visaual effect is limited. "rockets_Skyfire" will disappear from/appear in the pods but that's about it
about [removeAllWeapons heli] you can start a new thread, because it is quite offtopic in this one.
- RemoveWeapon/AddWeapon does not affect vehicle's model, but the internal logic. You can use a little trick with vehicles proxies instead
It works! I tested it by adding this to the marshall's init: this addMagazine "38Rnd_80mm_rockets";this addWeapon "rockets_Skyfire"; this addMagazine "8Rnd_LG_scalpel";this addWeapon "missiles_SCALPEL";this addMagazine "2000Rnd_20mm_shells";this addWeapon "gatling_20mm";