ACE3/addons/rearm/functions/fnc_disable.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

26 lines
489 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: GitHawk
* Disables being able to rearm a vehicle's turrets. [Global Effects]
*
* Arguments:
* 0: Vehicle <OBJECT>
* 1: Disable <BOOL> (default: true)
*
* Return Value:
* None
*
* Example:
* [tank] call ace_rearm_fnc_disable
* [tank, false] call ace_rearm_fnc_disable
*
* Public: Yes
*/
params [
["_vehicle", objNull, [objNull]],
["_disable", true, [true]]
];
_vehicle setVariable [QGVAR(disabled), _disable, true];