ACE3/addons/rearm/functions/fnc_rearmEntireVehicle.sqf

35 lines
836 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-08-16 00:18:53 +00:00
/*
* Author: GitHawk
* Starts progress bar for rearming an entire vehicle.
2015-08-16 00:18:53 +00:00
*
* Arguments:
* 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
*/
2016-02-27 19:31:07 +00:00
params ["_truck", "_player", "_vehicle"];
TRACE_3("rearmEntireVehicle",_truck,_player,_vehicle);
2015-08-16 00:18:53 +00:00
[
TIME_PROGRESSBAR(10),
[_truck, _vehicle, _player],
{(_this select 0) call FUNC(rearmEntireVehicleSuccess)},
2015-08-16 00:18:53 +00:00
"",
format [localize LSTRING(BasicRearmAction), getText(configOf _vehicle >> "displayName")],
{
param [0] params ["", "_vehicle", "_player"];
_player distance _vehicle <= GVAR(distance);
},
2015-08-16 00:18:53 +00:00
["isnotinside"]
] call EFUNC(common,progressBar);