Skip to content

Instantly share code, notes, and snippets.

@headswe
Created June 21, 2018 22:27
Show Gist options
  • Save headswe/6487f433275c036b0c73b76a1500b88f to your computer and use it in GitHub Desktop.
Save headswe/6487f433275c036b0c73b76a1500b88f to your computer and use it in GitHub Desktop.
_action = ["HEAD_PLACEFLAG","Place Flag","",
{
_pos = screenToWorld [0.5, 0.5];
if(player distance2d _pos > 1) exitWith {};
_flag = "classname" createVehicle _pos;
_flag setDir (_flag getDir player);
},
{
true
},
] call ace_interact_menu_fnc_createAction;
[
player,
1,
["ACE_SelfActions", "ACE_Equipment"],
_action
] call ace_interact_menu_fnc_addActionToObject;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment