Added API

This commit is contained in:
GitHawk 2016-02-25 10:18:31 +01:00
parent 804456c722
commit 2f183548b6
2 changed files with 22 additions and 0 deletions

View File

@ -4,6 +4,7 @@ PREP(canRearm);
PREP(canStoreAmmo);
PREP(canTakeAmmo);
PREP(createDummy);
PREP(disable);
PREP(dropAmmo);
PREP(getConfigMagazines);
PREP(getMaxMagazines);

View File

@ -0,0 +1,21 @@
/*
* Author: GitHawk
* Disables rearm for a vehicle.
*
* Arguments:
* 0: Target <OBJECT>
* 1: Disable <BOOL><OPTIONAL>
*
* Return Value:
* None
*
* Example:
* [tank] call ace_rearm_fnc_disable
* [tank, false] call ace_rearm_fnc_disable
*
* Public: Yes
*/
#include "script_component.hpp"
params [["_target", objNull, [objNull], ["_disable", true, [true]]];
_target setVariable [QGVAR(disabled), _disable, true];