2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-02-25 09:18:31 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk
|
2017-06-08 16:47:52 +00:00
|
|
|
* Disables being able to rearm a vehicle's turrets. [Global Effects]
|
2016-02-25 09:18:31 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2016-02-27 20:05:19 +00:00
|
|
|
* 0: Vehicle <OBJECT>
|
2023-05-01 15:33:07 +00:00
|
|
|
* 1: Disable <BOOL> (default: true)
|
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
|
|
|
|
*/
|
|
|
|
|
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];
|