mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
26 lines
489 B
Plaintext
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];
|