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

vehicle loadMagazine [turretPath, weaponName, magazineName]

Operand types

vehicle: Object
[turretPath, weaponName, magazineName]: Array

Type of returned value

Description

Initiates the loading action on given weapon of the turret. The new magazine is not available instantly but according to the reloadTime (defined in the congfig).

The turret has to be manned. One can also change the magazine if its respective weapon is not selected.

Syntax:
vehicle: Object
turretPath: Array
weaponName: String
magazineName: String

Used In

Arma2OA

Example

vehicle player loadMagazine [[0],"m256","20Rnd_120mmHE_M1A2"];

Advertisement