mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 10:56:29 +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
17 lines
342 B
Plaintext
17 lines
342 B
Plaintext
private["_array","_handle","_whistle","_dog"];
|
|
_array = _this select 3;
|
|
_handle = _array select 0;
|
|
_whistle = _array select 1;
|
|
_dog = _handle getFSMVariable "_dog";
|
|
|
|
if(_whistle) then {
|
|
[nil,player,rSAY,["dog_callBack", 120]] call RE;
|
|
};
|
|
|
|
uiSleep 1;
|
|
|
|
if (_dog distance player <= 900) then {
|
|
_handle setFSMVariable ["_command","return"];
|
|
};
|
|
|