mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
426 B
Plaintext
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 ""}
|