ACE3/addons/rearm/functions/fnc_disable.sqf

22 lines
429 B
Plaintext
Raw Normal View History

2016-02-25 09:18:31 +00:00
/*
* 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"
2016-02-25 09:25:57 +00:00
params [["_target", objNull, [objNull]], ["_disable", true, [true]]];
2016-02-25 09:18:31 +00:00
_target setVariable [QGVAR(disabled), _disable, true];