mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1caf6fb08f
* Add rearm distance setting * Set rearm distance slider maximum at 50m * Update addons/rearm/stringtable.xml Co-Authored-By: Dedmen Miller <dedmen@users.noreply.github.com> * Fix rearm action check * Update addons/rearm/stringtable.xml Co-Authored-By: Dedmen Miller <dedmen@users.noreply.github.com> * Update addons/rearm/initSettings.sqf Co-Authored-By: PabstMirror <pabstmirror@gmail.com> * Update addons/rearm/functions/fnc_rearm.sqf Co-Authored-By: PabstMirror <pabstmirror@gmail.com>
35 lines
867 B
Plaintext
35 lines
867 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* 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
|
|
*/
|
|
|
|
params ["_truck", "_player", "_vehicle"];
|
|
TRACE_3("rearmEntireVehicle",_truck,_player,_vehicle);
|
|
|
|
[
|
|
TIME_PROGRESSBAR(10),
|
|
[_truck, _vehicle, _player],
|
|
{(_this select 0) call FUNC(rearmEntireVehicleSuccess)},
|
|
"",
|
|
format [localize LSTRING(BasicRearmAction), getText(configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName")],
|
|
{
|
|
param [0] params ["", "_vehicle", "_player"];
|
|
_player distance _vehicle <= GVAR(distance);
|
|
},
|
|
["isnotinside"]
|
|
] call EFUNC(common,progressBar);
|