Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to use AI

Status
Not open for further replies.
Junior Spellweaver
Joined
May 22, 2015
Messages
103
Reaction score
29
Manual is written at the request of 2fed.
If you have something not work - ask questions, don't shout in vain.
Because "doFire" and others similar commands dont' work, we can create only Taxi bot.
Based on old AI guide of BadAss

1. Server side.

Script must be executed on server side. If you wanna put this in your mission, use
if (isServer) then {execVM "taxi"};
or create this script in modulesDayz


2. Spawn bot.SpawnPos = [7500,7500];
Bot = createAgent ["SurvivorPartsMaleWhite", SpawnPos, [], 0, "NONE"];
Taxi = createVehicle ["Car_Sedan", SpawnPos, [], 0, "NONE"];
Bot moveInDriver Taxi;
Bot allowDamage false;
Taxi allowDamage false;


Now we have one ready immortal Taxi


3. Create waypoint.
DestPos = [0,0];
Bot moveTo DestPos;


Now our cabbie goes to DestPos
Let's wait him:


waitUntil {moveToCompleted Bot};


4. Bot logic.


cndCrew = count {crew Taxi};
waitUntil {cndCrew > 0};//I do not remember if the dummy is considered a member, try 0 and 1

5. Create route with a few waypoints

Now you have the details to create a route.
Change SpawnPos, DestPos and create onther waypoints.
I do not use it, but it works fine.
Learn to write scripts, it is useful especially for you.
Enjoy :)
 
Last edited:
Status
Not open for further replies.
Back
Top