mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
516 B
Plaintext
27 lines
516 B
Plaintext
|
#include "script_component.hpp"
|
||
|
/*
|
||
|
* Author: Timi007
|
||
|
* Stops carrying flag and add flag item to unit.
|
||
|
*
|
||
|
* 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);
|