Warning: file_put_contents(/ff_a47122bcd6eff77fb48217c269809df7c58312d90e8477c2.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
removeMagazinesTurret - OFPEC Scripting Command Reference | OFPEC The Editing Center

vehicle removeMagazinesTurret [magazineName, turretPath]

Operand types

vehicle: Object
[magazineName, turretPath]: Array

Type of returned value

Description

Removes all magazines of the given type from the unit.
Use turret path [-1] for driver's turret.

Note: you may create invalid combinations by using this function. When doing so, application behaviour is undefined.

Used In

Arma2OA

Example

tank1 removeMagazinesTurret ["20Rnd_120mmSABOT_M1A2",[0]];

tank1 removeMagazinesTurret ["60rnd_cmflaremagazine",[-1]];

Advertisement