arma2-epoch-server/MPMissions/DayZ_Epoch_24.Napf/ActionMenu/actionmenu_activate.sqf

22 lines
509 B
Plaintext
Raw Normal View History

2022-04-21 16:15:41 +03:00
[]spawn
{
wardrobe = -1;
private["_veh"];
while {(alive player)} do
{
if (wardrobe == -1) then
{
//wardrobe = (vehicle player) addaction [("<t color=""#000000"">" + ("Action Menu") +"</t>"),"actionmenu\actionmenu_execute.sqf","",5,false,true,"",""];
wardrobe = (vehicle player) addaction ["Action Menu","actionmenu\actionmenu_execute.sqf","",5,false,true,"",""];
_veh = vehicle player;
};
if (_veh != vehicle player) then
{
_veh removeAction wardrobe;
wardrobe = -1;
};
Sleep 2;
};
};