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
827 B
Plaintext
24 lines
827 B
Plaintext
private ["_object"];
|
|
_object = _this select 3;
|
|
|
|
// _position = [position _object,0,0,0,0,0,0,position player] call BIS_fnc_findSafePos;
|
|
|
|
//Standup
|
|
//player playMove "amovpercmstpsraswrfldnon_amovpknlmstpslowwrfldnon";
|
|
//uiSleep 1;
|
|
//waitUntil { animationState player != "amovpercmstpsraswrfldnon_amovpknlmstpslowwrfldnon"};
|
|
|
|
//Kneel Down
|
|
player playMove "amovpknlmstpslowwrfldnon_amovpercmstpsraswrfldnon";
|
|
waitUntil { animationState player != "amovpknlmstpslowwrfldnon_amovpercmstpsraswrfldnon"};
|
|
uiSleep 2;
|
|
//_object setpos _position;
|
|
_object setvectorup [0,0,1];
|
|
[player,"scream",0,true] call dayz_zombieSpeak;
|
|
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
|
uiSleep 3;
|
|
|
|
|
|
//Other possibilities
|
|
//[_object,0, 0] call bis_fnc_setpitchbank;
|
|
//_object setpos [getpos _object select 0, getpos _object select 1, 0]; |