ACE3/addons/rearm/functions/fnc_rearmEntireVehicle.sqf
PabstMirror f35f80ee82 Rearm - Pylon Support and Dynamically Add Supply Actions (#5183)
* Dynamic Add

* Support 1.70 Pylon Loadouts

* Properly handle old compat pbos - Update RHS Compat

* Re-add documentation

* cleanup headers (note from other pr)

* Cleanup

* Fix var spelling
2017-06-08 11:47:52 -05:00

35 lines
722 B
Plaintext

/*
* Author: GitHawk
* Starts progress bar for rearming an entire vehicle.
*
* Arguments:
* 0: Ammo Truck <OBJECT>
* 1: Unit <OBJECT>
* 2: Vehicle to be armed <OBJECT>
*
* Return Value:
* None
*
* Example:
* [ammo_truck, player, tank] call ace_rearm_fnc_rearmEntireVehicle
*
* Public: No
*/
#include "script_component.hpp"
params [
["_truck", objNull, [objNull]],
"",
["_vehicle", objNull, [objNull]]
];
[
TIME_PROGRESSBAR(10),
[_truck, _vehicle],
FUNC(rearmEntireVehicleSuccess),
"",
format [localize LSTRING(BasicRearmAction), getText(configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName")],
{true},
["isnotinside"]
] call EFUNC(common,progressBar);