mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
From
e69f8d5306
Moved dog files to the \dog\ folder and pzombie files to the \pzombie\
folder. Also removed some legacy files that are no longer used.
The actions\ and compile\ folders are fully up to date now
26 lines
543 B
Plaintext
26 lines
543 B
Plaintext
private["_unit","_originalPos","_pos"];
|
|
_unit = _this select 0;
|
|
_originalPos = _this select 1;
|
|
_pos = getPosATL _unit;
|
|
|
|
if (count _this > 2) then {
|
|
_pos = _this select 2;
|
|
} else {
|
|
//_unit enableAI "MOVE";
|
|
//_unit enableAI "ANIM";
|
|
//_pos = [_originalPos,10,90,4,0,5,0] call BIS_fnc_findSafePos;
|
|
_pos = [_originalPos,10,(10 - (random (90 * 2))),0] call fn_selectRandomLocation;
|
|
};
|
|
|
|
/*
|
|
if(isNull group _unit) then {
|
|
_unit moveTo _pos;
|
|
} else {
|
|
_unit domove _pos;
|
|
};
|
|
_unit forceSpeed 2;
|
|
_unit setVariable ["myDest",_pos];
|
|
*/
|
|
|
|
_pos
|