ACE3/addons/flags/functions/fnc_carriesFlag.sqf

22 lines
426 B
Plaintext
Raw Normal View History

2022-06-10 19:46:06 +00:00
#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 ""}