mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
commit
23d35cf9f7
@ -4,6 +4,7 @@ PREP(canRearm);
|
|||||||
PREP(canStoreAmmo);
|
PREP(canStoreAmmo);
|
||||||
PREP(canTakeAmmo);
|
PREP(canTakeAmmo);
|
||||||
PREP(createDummy);
|
PREP(createDummy);
|
||||||
|
PREP(disable);
|
||||||
PREP(dropAmmo);
|
PREP(dropAmmo);
|
||||||
PREP(getConfigMagazines);
|
PREP(getConfigMagazines);
|
||||||
PREP(getMaxMagazines);
|
PREP(getMaxMagazines);
|
||||||
|
21
addons/rearm/functions/fnc_disable.sqf
Normal file
21
addons/rearm/functions/fnc_disable.sqf
Normal 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];
|
Loading…
Reference in New Issue
Block a user