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
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: