mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
see the below links for more info. uiSleep is based off of a more accurate method of tracking time, whereas sleep can fluctuate depending on application performance since it is based on framerate. https://community.bistudio.com/wiki/uiSleep https://community.bistudio.com/wiki/sleep_vs_uiSleep https://community.bistudio.com/wiki/sleep
24 lines
529 B
Plaintext
24 lines
529 B
Plaintext
private [];
|
|
//_item = _this select 3;
|
|
|
|
// remove menu
|
|
player removeAction s_player_callzombies;
|
|
s_player_callzombies = 1;
|
|
|
|
// player playActionNow "Surrender";
|
|
|
|
// for now try reseting animation when this is called to test preventing animation lockups
|
|
// player switchMove "";
|
|
|
|
[player,"spotted",0,false] call dayz_zombieSpeak;
|
|
|
|
[player,100,true,(getPosATL player)] spawn player_alertZombies;
|
|
|
|
// wait a bit
|
|
uiSleep 3;
|
|
|
|
// allow menu again
|
|
s_player_callzombies = -1;
|
|
|
|
// cutText [(localize "STR_EPOCH_ACTIONS_1"), "PLAIN DOWN"];
|