2016-02-25 09:18:31 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk
|
|
|
|
* Disables rearm for a vehicle.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2016-02-27 20:05:19 +00:00
|
|
|
* 0: Vehicle <OBJECT>
|
2016-06-06 18:42:20 +00:00
|
|
|
* 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"
|
|
|
|
|
2016-05-12 12:55:40 +00:00
|
|
|
params [
|
|
|
|
["_vehicle", objNull, [objNull]],
|
|
|
|
["_disable", true, [true]]
|
|
|
|
];
|
|
|
|
|
2016-02-27 20:05:19 +00:00
|
|
|
_vehicle setVariable [QGVAR(disabled), _disable, true];
|