Page MenuHomeFeedback Tracker

Cannot add vehicle weapon to another vehicle
Closed, ResolvedPublic

Description

this addMagazine "Magazine Classname";this addWeapon "Weapon Classname"; does not work.

Details

Legacy ID
516536125
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

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 ";

Additional Information

This worked in Arma 2. And allows you to put any weapon on any armed vehicle.

Event Timeline

ProGamer edited Steps To Reproduce. (Show Details)Aug 4 2013, 12:14 AM
ProGamer edited Additional Information. (Show Details)
ProGamer set Category to Scripting.
ProGamer set Reproducibility to Always.
ProGamer set Severity to None.
ProGamer set Resolution to Fixed.
ProGamer set Legacy ID to 516536125.May 7 2016, 3:50 PM
AD2001 added a subscriber: AD2001.May 7 2016, 3:50 PM

Maybe this is intended?

Why? It is a sandbox command, this isn't dayz so why would they remove a command like this? Seems like something they forgot.

IDK.
/upvoted

Its probably there in Arma 3 but it got broken by something.

Did you try addMagazineTurret?

should be fixed since ver. 108534(DEV).

can someone test it and give me a feedback?

Latest dev is 108469

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

  1. removeAllWeapons heli - doesn't do anything, to remove all weapons one needs to

{heli removeWeapon _x} foreach weapons heli;

  1. 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.

  1. 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";

It works with vehicle weapons.

This fixed as far as I can tell.