Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// So if this is run serverside, and animalCount is the publicVarbale.
- if (animalCount < maxAnimals) then
- {
- //_amountToSpawn = maxAnimals - count animalArray;
- _amountToSpawn = maxAnimals - animalCount;
- diag_log format ["Remaining animals to spawn:%1 animals",_amountToSpawn];
- for "_i" from 1 to _amountToSpawn do
- {
- _animalSpawn = [_spawnCenter,_min,_max,_mindist,_water,1,_shoremode] call BIS_fnc_findSafePos;
- _goat = createAgent ["Cock_white_F", _animalSpawn, [], 5, "CAN_COLLIDE"];
- //animalArray = animalArray + [_goat];
- animalCount = animalCount + 1;
- diag_log format ["Spawned:%1 animals",animalCount];
- if (debug) then
- {
- _sheepMarker = createMarker ["Sheep",_animalSpawn];
- "Sheep" setMarkerType "mil_dot";
- "Sheep" setMarkerText "Sheep";
- };
- };
- };
- ----------Seperate clientside script------
- // This is run client side
- private ["_consume","_chanceForSick"];
- player playMove "AinvPknlMstpSnonWnonDr_medic1";
- deleteVehicle _curTarget;
- animalCount = animalCount - 1;
- sleep 10;
Advertisement
Add Comment
Please, Sign In to add comment