Skip to content

Instantly share code, notes, and snippets.

@headswe
Created January 7, 2017 23:41
Show Gist options
  • Save headswe/4564e8f9eae4b480d19c4b2e44920cf7 to your computer and use it in GitHub Desktop.
Save headswe/4564e8f9eae4b480d19c4b2e44920cf7 to your computer and use it in GitHub Desktop.
he_fnc_makeMarker = {
if(!isServer) exitWith {};
params ["_pos","_text","_color","_icon"];
_veh = "Helper_Base_F" createVehicle _pos;
_veh setPosATL _pos;
_veh setVariable ["Text",_text,true];
if(!isNil "_color") then {_veh setVariable ["Color",_color]};
if(!isNil "_icon") then {_veh setVariable ["Icon",Icon]};
[_veh,[],true] remoteExec ["TMF_spectator_fnc_objectiveModule",0,true];
};
[getpos player,"Im a player",[0,1,0,1],"\A3\ui_f\data\map\markers\nato\b_unknown.paa"] call he_fnc_makeMarker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment