mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
6851183e1f
* add marker flags * minor cleanup * use pictures for actions * check canDig * review changes * Update fnc_placeFlag.sqf * fix hiddenSelectionsTextures * Update addons/marker_flags/functions/fnc_pickUpFlag.sqf Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> * Cache flag list at pre-start * Add model for flag pole * Pass item name to pickUpFlag via action * Update addons/marker_flags/stringtable.xml Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com> Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
29 lines
635 B
Plaintext
29 lines
635 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Brett Mayson
|
|
* Places a flag in front of the unit.
|
|
*
|
|
* Arguments:
|
|
* 0: Flag <OBJECT>
|
|
* 1: Unit <OBJECT>
|
|
* 2: Action Args <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* [_flag,player,"x"] call ace_marker_flags_fnc_pickupFlag
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params [["_flag", objNull, [objNull]], ["_unit", objNull, [objNull]], ["_args", [""], [[]]]];
|
|
private _itemName = _args # 0;
|
|
TRACE_3("pickupFlag",_unit,_flag,_itemName);
|
|
|
|
if (isNull _flag) exitWith {};
|
|
|
|
[_unit, "PutDown"] call EFUNC(common,doGesture);
|
|
deleteVehicle _flag;
|
|
[_unit, _itemName] call EFUNC(common,addToInventory);
|