ACE3/addons/rearm/functions/fnc_disable.sqf
Githawk 9cfa2f11d9 Stuff
Arguments, Return Value, (optional)
2016-06-06 20:42:20 +02:00

26 lines
443 B
Plaintext

/*
* Author: GitHawk
* Disables rearm for a vehicle.
*
* Arguments:
* 0: Vehicle <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 [
["_vehicle", objNull, [objNull]],
["_disable", true, [true]]
];
_vehicle setVariable [QGVAR(disabled), _disable, true];