mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
f35f80ee82
* 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
26 lines
480 B
Plaintext
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];
|