1.7.5.D1216

This commit is contained in:
A Clark
2012-12-17 13:16:34 -06:00
parent 08793009ae
commit 0faab1b8ff
34 changed files with 641 additions and 469 deletions

View File

@@ -30,7 +30,6 @@ if (count _list < dayz_maxAnimals) then {
_root = configFile >> "CfgVehicles" >> _type;
_favouritezones = getText ( _root >> "favouritezones");
//_randrefpoint = [position player, 10, dayz_animalDistance, 1, 0, 50, 0] call BIS_fnc_findSafePos;
_randrefpoint = getposATL player;
_PosList = selectbestplaces [_randrefpoint,dayz_animalDistance,_favouritezones,10,5];
@@ -45,21 +44,4 @@ if (count _list < dayz_maxAnimals) then {
_id = [_pos,_agent] execFSM "\z\addons\dayz_code\system\animal_agent.fsm";
};
sleep 1;
};
//Comment out above code and use code below for testing
/*
private["_type","_pos","_agent","_id"];
_near = (position player) nearEntities ["DZ_Pastor",500];
if (count _near == 0) then {
_type = "DZ_Pastor";
_pos = player modelToWorld [0,(count _near) + 1,0];
_agent = createAgent [_type, _pos, [], 0, "NONE"];
player reveal _agent;
_agent setpos _pos;
//_id = [_pos,_agent] execFSM "\z\addons\dayz_code\system\animal_agent.fsm";
_id = 1;
_agent setVariable ["fsm_handle", _id];
};
*/
};