Skip to content

Commit

Permalink
add destroy interact
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisum committed Mar 14, 2016
1 parent e83c6be commit 8fc1879
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
26 changes: 25 additions & 1 deletion player/teleportPlayer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,28 @@ player allowDamage true;
sleep 1;
cutText ["", "PLAIN"];

["<img size= '6' shadow='false' image='pic\gruppe-adler.paa'/><br/><t size='.9' color='#FFFFFF'>Breaking Contact</t>",0,0,2,2] spawn BIS_fnc_dynamicText;
["<img size= '6' shadow='false' image='pic\gruppe-adler.paa'/><br/><t size='.9' color='#FFFFFF'>Breaking Contact</t>",0,0,2,2] spawn BIS_fnc_dynamicText;

addBluforSpawnpadMarker = {
_pos = _this;

_blufor_marker_start = createMarkerLocal ["blufor_marker_spawnpad", _pos];
_blufor_marker_start setMarkerTypeLocal "hd_pickup";
_blufor_marker_start setMarkerColorLocal "ColorWEST";
};

addOpforSpawnpadMarker = {
_pos = _this;

_blufor_marker_start = createMarkerLocal ["opfor_marker_spawnpad", _pos];
_blufor_marker_start setMarkerTypeLocal "hd_pickup";
_blufor_marker_start setMarkerColorLocal "ColorEAST";
};

if (side player == west) then {
US_SPAWNPAD call addBluforSpawnpadMarker;
};

if (side player == east) then {
RUS_SPAWNPAD call addOpforSpawnpadMarker;
};
13 changes: 11 additions & 2 deletions spawn/addInteractions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@ _usAction2 = ["ACE_MainActions", (localize "str_GRAD_buy_vehicles"), "",


_rusAction = ["RusBuyMenu", (localize "str_GRAD_buy_vehicles"), "",
{0 = createDialog "RussianSupplyGUI"; disableSerialization; [russianSupplies, false, 0, "","",""] call refreshRussianUI;},
{
0 = createDialog "RussianSupplyGUI"; disableSerialization; [russianSupplies, false, 0, "","",""] call refreshRussianUI;
},
{side player == east}] call ace_interact_menu_fnc_createAction;

["rhs_gaz66_r142_vv", 0, ["ACE_MainActions"],_rusAction] call ace_interact_menu_fnc_addActionToClass;


_destroyAction = ["usDestroyMenu", (localize "str_GRAD_buy_vehicles"), "",
{
[60, [], {(_this select 0) setdamage 1;}, {hint "Cancelled"}, "Destroying radio equipment"] call ace_common_fnc_progressBar;
},
{side player == west}] call ace_interact_menu_fnc_createAction;
["rhs_gaz66_r142_vv", 0, ["ACE_MainActions"],_destroyAction] call ace_interact_menu_fnc_addActionToClass;



/*_assembleTankTrap = ["ACE_MainActions", "Assemble Tank Trap", "",
{[this] call assembleTankTrap;},
Expand Down

0 comments on commit 8fc1879

Please sign in to comment.