2022-06-10 19:46:06 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
/*
|
|
|
|
* Author: Timi007
|
2022-06-21 18:45:28 +00:00
|
|
|
* Stops carrying flag and adds flag item back to unit.
|
2022-06-10 19:46:06 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [player] call ace_flags_fnc_furlFlag
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_unit"];
|
|
|
|
|
|
|
|
// Stop carrying flag and add flag item to unit.
|
|
|
|
_item = _unit getVariable [QGVAR(carryingFlag), ""];
|
|
|
|
_unit setVariable [QGVAR(carryingFlag), nil, true];
|
|
|
|
|
|
|
|
_unit forceFlagTexture ""; // Remove flag
|
|
|
|
|
|
|
|
[_unit, _item] call EFUNC(common,addToInventory);
|