mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
29 lines
533 B
Plaintext
29 lines
533 B
Plaintext
/*
|
|
* Author: Commy2 and esteldunedain
|
|
* Return true if the unit can unjam it's current weapon
|
|
*
|
|
* Arguments:
|
|
* 0: Player <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Bool <BOOL>
|
|
*
|
|
* Example:
|
|
* [bob] call ace_overheating_fnc_canUnjam
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
TRACE_1("_unit",_unit);
|
|
|
|
private _jammedWeapons = _unit getVariable [QGVAR(jammedWeapons), []];
|
|
if !(currentWeapon _unit in _jammedWeapons) exitWith {
|
|
false
|
|
};
|
|
if !([_unit] call CBA_fnc_canUseWeapon) exitWith {
|
|
false
|
|
};
|
|
true
|