Standart Arma II AI in Dayz

Baguar

New Member
Hello. I'm trying to add some groups of bots via 3d editor with fixed positions and custom weapons (available in DayZ). But when I testing these bots in my own server I can see only one bot with wrong weapon. There's example of sqf file.
Code:
if (isServer) then
{
_this = createCenter east;
 
_center_10 = _this;
 
_group_10 = createGroup _center_10;
 
_group_30 = createGroup _center_10;
 
_unit_87 = objNull;
if (true) then
{
  _this = _group_30 createUnit ["FR_GL", [4368.5303, 10605.629, 20.661997], [], 0, "CAN_COLLIDE"];
  _unit_87 = _this;
  _this setDir 100.4497;
  _this setVehicleInit "this setBehaviour 'combat'; this disableAI 'move'; removeallweapons this; this addmagazine ""5Rnd_762x51_M24"", 4; this addweapon ""M40A3"", 1;";
  _this setUnitRank "SERGEANT";
  _this setUnitAbility 1;
  if (false) then {_group_30 selectLeader _this;};
};
 
_unit_92 = objNull;
if (true) then
{
  _this = _group_30 createUnit ["FR_Sapper", [4327.8604, 10799.207, 8.8175259], [], 0, "CAN_COLLIDE"];
  _unit_92 = _this;
  _this setDir 139.01616;
  _this setVehicleInit "this setBehaviour 'combat'; this disableAI 'move'; removeallweapons this; this addweapon ""BAF_LRR_scoped"", 1; this addmagazine ""5Rnd_86x70_L115A1"", 4;";
  _this setUnitRank "LIEUTENANT";
  _this setUnitAbility 1;
  if (true) then {_group_30 selectLeader _this;};
};
etc..
_unit_105 = objNull;
if (true) then
{
  _this = _group_10 createUnit ["USMC_SoldierM_Marksman", [4386.2471, 10675.123, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _unit_105 = _this;
  _this setDir 219.7085;
  _this setVehicleInit "this setBehaviour 'combat'; this disableAI 'move'; removeallweapons this; this addmagazine ""30Rnd_762x39_Sa58"", 4; this addweapon ""Sa58V_CCO_EP1"", 1;";
  _this setUnitRank "SERGEANT";
  _this setUnitAbility 1;
  if (false) then {_group_10 selectLeader _this;};
};
 
_unit_116 = objNull;
if (true) then
{
  _this = _group_10 createUnit ["USMC_Soldier_TL", [4358.0293, 10636.771, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _unit_116 = _this;
  _this setDir 95.71859;
  _this setVehicleInit "this setBehaviour 'combat'; this disableAI 'move'; removeallweapons this; this addmagazine ""20Rnd_762x51_FNFAL"", 4; this addweapon ""FN_FAL"", 1;";
  _this setUnitRank "LIEUTENANT";
  _this setUnitAbility 1;
  if (false) then {_group_10 selectLeader _this;};
};
etc..

I haven't much experience with scripting. I think there's something wrong with group order or what? I'll be most thankful if you point me to the right way.
 
i dont know which mod do you use but if its dayz vanilla you have tto change the skins and maybe some weapon-names to dayz standards

here are the dayz vanilla skins:
Bandit1_DZ
BanditW1_DZ
Survivor1_DZ
Survivor2_DZ
SurvivorW2_DZ
Sniper1_DZ
Camo1_DZ
Soldier1_DZ
Rocket_DZ
 
i dont know which mod do you use but if its dayz vanilla you have tto change the skins and maybe some weapon-names to dayz standards

here are the dayz vanilla skins:
Bandit1_DZ
BanditW1_DZ
Survivor1_DZ
Survivor2_DZ
SurvivorW2_DZ
Sniper1_DZ
Camo1_DZ
Soldier1_DZ
Rocket_DZ

I'm using Dayz Epoch mod
 
Back
Top