ACE3/addons/rearm/functions/fnc_disable.sqf
PabstMirror f35f80ee82 Rearm - Pylon Support and Dynamically Add Supply Actions (#5183)
* Dynamic Add

* Support 1.70 Pylon Loadouts

* Properly handle old compat pbos - Update RHS Compat

* Re-add documentation

* cleanup headers (note from other pr)

* Cleanup

* Fix var spelling
2017-06-08 11:47:52 -05:00

26 lines
480 B
Plaintext

/*
* Author: GitHawk
* Disables being able to rearm a vehicle's turrets. [Global Effects]
*
* 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];