Jump to content
  • 0

Help me to add bots in my server


nasservip

Question

9 answers to this question

Recommended Posts

  • 0

if u want to add your custom bots.. then open arma2oa editor  (main menu of the game and press Ctrl + E )  Choose Chernarus.

1-Create a Center (Blufor faction) whatever place in the map.

2- Creat a group - whatever place on the map.

3- Create Unit. 

---from here your ready to save your file but you needs add your enemy bots-------

4-Create another Center-Group- and unit.  But this time must be Opfor faction. (when you create a opfor center remember asing like enemy o bluefor and civilian faction)

5-Choose any kind and amount of units and place where you want your AI.  If you know a little of arma2 editor then use the waypoints to move the AI trought the map, add vehicles... etc.

Once you think is done.. save it.

6-Go to C:\Users\User\Documents\ArmA 2 Other Profiles\yourprofile\missions\  and open your saved work whit note ++ or notepad.

then Delete in the very top all about blufor for example... delete lines in red and add lines in blue.

Spoiler

activateAddons [
];

activateAddons [];
initAmbientLife;

_this = createCenter east;
_center_1 = _this;

_group_1 = createGroup _center_1;

_unit_1 = objNull;
if (true) then
{
  _this = _group_1 createUnit ["Ins_Soldier_Pilot", [12533.064, 12569.429], [], 0, "CAN_COLLIDE"];
  _unit_1 = _this;
  _this setDir -105.85972;
  _this setVehicleVarName "pilot1";
  pilot1 = _this;
  _this setUnitAbility 0.60000002;
  if (true) then {_group_1 selectLeader _this;};
};

if (isServer) then {

7-Now go to the buttom of the file and delete lines in red and add lines in blue

Spoiler

processInitCommands;
runInitScript;
finishMissionInit;

};

save as bots.sqf

an example  how its looks whit one unit:

bots.sqf

Spoiler

if (isServer) then {

_this = createCenter east;
_this setFriend [west, 0];
_this setFriend [resistance, 0];
_this setFriend [civilian, 0];
_center_1 = _this;

_group_1 = createGroup _center_1;

_unit_3 = objNull;
if (true) then
{
  _this = _group_1 createUnit ["Ins_Soldier_Sniper", [12035.976, 12675.026, 0], [], 0, "CAN_COLLIDE"];
  _unit_3 = _this;
  _this setUnitAbility 0.60000002;
  if (true) then {_group_1 selectLeader _this;};
};

};

-Now go to your init.sqf  open it and add at very bottom

[] execVM "yourpath\bots.sqf";

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...