2016-02-25 09:18:31 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk
|
2018-01-17 11:36:10 +00:00
|
|
|
* Disables rearm for a vehicle.
|
2016-02-25 09:18:31 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2018-01-17 11:36:10 +00:00
|
|
|
* 0: Target <OBJECT>
|
|
|
|
* 1: Disable <BOOL><OPTIONAL>
|
2016-02-25 09:18:31 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [tank] call ace_rearm_fnc_disable
|
|
|
|
* [tank, false] call ace_rearm_fnc_disable
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2018-01-17 11:36:10 +00:00
|
|
|
params [["_target", objNull, [objNull]], ["_disable", true, [true]]];
|
|
|
|
_target setVariable [QGVAR(disabled), _disable, true];
|