36 lines
982 B
Plaintext
36 lines
982 B
Plaintext
/*
|
|
* Author: Hizumi
|
|
*
|
|
* Create Ammo resupply box for the 17th Battalion
|
|
*
|
|
* Arguments:
|
|
* 0: Vehicle - <OBJECT>
|
|
* 1: Position - <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* Function executed <BOOL>
|
|
*
|
|
* Example:
|
|
* [box] call milsim_fnc_createWeaponsBox; // create ammo box via init line of editor object
|
|
* [objNull, pos] call milsim_fnc_createWeaponsBox; // create ammo box via zeus module
|
|
*
|
|
* Public: Yes
|
|
*
|
|
* Note: For gathering:
|
|
formatText ["%1", [
|
|
["containerClassname", typeOf cursorObject],
|
|
["backpack", (backpackCargo cursorObject) call BIS_fnc_consolidateArray],
|
|
["item", (itemCargo cursorObject) call BIS_fnc_consolidateArray],
|
|
["magazine", (magazineCargo cursorObject) call BIS_fnc_consolidateArray],
|
|
["magazineAmmo", magazinesAmmoCargo cursorObject],
|
|
["weapon", (weaponCargo cursorObject) call BIS_fnc_consolidateArray]
|
|
]];
|
|
*/
|
|
|
|
|
|
params [
|
|
["_box", objNull, [objNull]],
|
|
["_pos", [0,0,0], [[]], 3]
|
|
];
|
|
|
|
[_box, "AMMO HEAVY", _pos] call milsim_fnc_createBox; |