Jump to content
  • 0

Roaming animal herds / packs


Havoc302

Question

So does anyone have any experience messing with the DayZ Epoch animals? I'd like to turn the odd one here and there to be roaming herds of them, like you rarely see a single sheep or any other animal like that in the wild, they're always in flocks / herds / packs etc. Same with the dogs, I'd love roaming dog packs to be a dangerous thing to deal with.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

So does anyone have any experience messing with the DayZ Epoch animals? I'd like to turn the odd one here and there to be roaming herds of them, like you rarely see a single sheep or any other animal like that in the wild, they're always in flocks / herds / packs etc. Same with the dogs, I'd love roaming dog packs to be a dangerous thing to deal with.

 

I think it would be as simple as adding thier classnames to Zombie_generate but they would spawn with Zs

Link to comment
Share on other sites

  • 0

Don't know why this makes me laugh so much, but try it and see if you don't.  Just call the script from wherever...

 

It doesn't create a herd, just a plague.  You'd have to modify the fsm to include some form of grouping behaviour.

private["_Create","_Pos","_area","_count"];

_area = 0;
_count = 0;

_areaMenu =
[
["",true],
	["Set Radius:", [-1], "", -5, [["expression", ""]], "1", "0"],
	["5m",[],"", -5,[["expression","_area = 5;"]],"1","1"],
	["10m",[],"", -5,[["expression","_area = 10;"]],"1","1"],
	["20m",[],"", -5,[["expression","_area = 20;"]],"1","1"],
	["30m",[],"", -5,[["expression","_area = 30;"]],"1","1"],
	["40m",[],"", -5,[["expression","_area = 40;"]],"1","1"],
	["50m",[],"", -5,[["expression","_area = 50;"]],"1","1"],
	["75m",[],"", -5,[["expression","_area = 75;"]],"1","1"],
	["100m",[],"", -5,[["expression","_area = 100;"]],"1","1"],
	["125m",[],"", -5,[["expression","_area = 125;"]],"1","1"],
	["150m",[],"", -5,[["expression","_area = 150;"]],"1","1"],
	["200m",[],"", -5,[["expression","_area = 200;"]],"1","1"],
	["", [], "", -5,[["expression", ""]], "1", "0"],
		["Exit", [20], "", -5, [["expression", "_area = -1;"]], "1", "1"]
];

amountMenu =
[
["",true],
	["Select bunny count:", [-1], "", -5, [["expression", ""]], "1", "0"],
	["1",[],"", -5,[["expression","_count = 1;"]],"1","1"],
	["2",[],"", -5,[["expression","_count = 2;"]],"1","1"],
	["3",[],"", -5,[["expression","_count = 3;"]],"1","1"],
	["4",[],"", -5,[["expression","_count = 4;"]],"1","1"],
	["5",[],"", -5,[["expression","_count = 5;"]],"1","1"],
	["10",[],"", -5,[["expression","_count = 10;"]],"1","1"],
	["20",[],"", -5,[["expression","_count = 20;"]],"1","1"],
	["30",[],"", -5,[["expression","_count = 30;"]],"1","1"],
	["40",[],"", -5,[["expression","_count = 40;"]],"1","1"],
	["50",[],"", -5,[["expression","_count = 50;"]],"1","1"],
	["100",[],"", -5,[["expression","_count = 100;"]],"1","1"],
	["", [], "", -5,[["expression", ""]], "1", "0"],
		["Exit", [20], "", -5, [["expression", "_count = -1;"]], "1", "1"]
];

showCommandingMenu "#USER:_areaMenu";
waitUntil{(_area != 0) || (commandingMenu == "")};
if(_area == -1) exitWith{};

showCommandingMenu "#USER:amountMenu";
waitUntil{(_count != 0) || (commandingMenu == "")};
if(_count == -1) exitWith{};

_i = 1;
for "_i" from 1 to _count do {
	_Create = createAgent ["rabbit", position player, [], _area, "NONE"];
	_Pos = getPosATL _Create;
	[_Pos,_zCreate] execFSM "\z\addons\dayz_code\system\animal_agent.fsm";
};

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...