2015-08-16 00:18:53 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk
|
2015-08-18 00:32:10 +00:00
|
|
|
* Starts progress bar for rearming an entire vehicle.
|
2015-08-16 00:18:53 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-18 00:32:10 +00:00
|
|
|
* 0: Ammo Truck <OBJECT>
|
|
|
|
* 1: Unit <OBJECT>
|
|
|
|
* 2: Vehicle to be armed <OBJECT>
|
2015-08-16 00:18:53 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [ammo_truck, player, tank] call ace_rearm_fnc_rearmEntireVehicle
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
2016-02-27 19:31:07 +00:00
|
|
|
|
2016-05-12 12:55:40 +00:00
|
|
|
params [
|
|
|
|
["_truck", objNull, [objNull]],
|
|
|
|
"",
|
|
|
|
["_vehicle", objNull, [objNull]]
|
|
|
|
];
|
2015-08-16 00:18:53 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
10,
|
2016-02-27 20:05:19 +00:00
|
|
|
[_truck, _vehicle],
|
2015-08-16 00:18:53 +00:00
|
|
|
FUNC(rearmEntireVehicleSuccess),
|
|
|
|
"",
|
|
|
|
format [localize LSTRING(BasicRearmAction), getText(configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName")],
|
|
|
|
{true},
|
|
|
|
["isnotinside"]
|
2015-08-18 00:32:10 +00:00
|
|
|
] call EFUNC(common,progressBar);
|