ACE3/addons/flags/functions/fnc_carriesFlag.sqf
2022-06-10 21:46:20 +02:00

22 lines
426 B
Plaintext

#include "script_component.hpp"
/*
* Author: Timi007
* Checks if the unit is carrying a flag.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* True if unit is carrying a flag; otherwise flase <BOOLEAN>
*
* Example:
* [player] call ace_flags_fnc_carriesFlag
*
* Public: No
*/
params ["_unit"];
(_unit getVariable [QGVAR(carryingFlag), ""] isNotEqualTo "") &&
{(getForcedFlagTexture _unit) isNotEqualTo ""}