Honestly, this actually looks really sick, nice work
Thanks a lot! im probably gonna keep working on this project too.
Thanks, let me know if you find any bugs or have any ideas of what i could add
This is really helpful, even if there certain outdated functions being used like wait() i’m fine with that, and i mostly do stuff on the client-side that it doesn’t bother me what wait i use and it’s not like they are really easy to replace anyway.
Regardless, thank you very much for making this.
Thanks a lot, ill try fixing my code asap! This is my first model to get such recognition and i will add also a tank chassis/ai included to help people making military games
Looks cool. Would be nice to see a video of it in actions instead of an animation.
Hi,
This looks sweet and fun, thanks for sharing!
How can different cars be tuned to do different things? Like one is slow, another med, and another fast?
OR smarter or dumber.
Maybe too, just add a working car with the stuff in it to your example model, so it has an AI model and a car we can drive … meaning a car we can drive that is setup, and the AI car will chase us in the 2nd car we are in…
and can you copy and paste the code of this, so we can do the same?
and or how do I get it to chase me… I have a car…from the tool box… (I tried to mod the AI car and got rid of the dummy and script… but then it flew up in the air)…
Hi! For the speed of the car that is not a problem i am going to implement it that right now since i just need to change a couple of numbers. I can easily make a tetmplate model that chases the player or another car.
CAR AI UPDATE
In this new update i added a new template file that has 2 cars, one of the player and one for the A.I chaser.
NOTES
I had suggestion to implement a speed parameter to the AI cars but i somehow can’t implement it in my current car (roblox default jeep). The next big update will probably be tank support for the AI. (working tank track, shooting system, max dep., max elev. and more)
CREDITS
@gianfragolo for making it , @Lord_BradyRocks for suggestions and ideas. And whole fancy lobster club for support and help.
There are already a few gifs that showcase the Ai. Animation is just a bouns
Works great but i would suggest you used ShapeCast instead of ray cast because the car can get stuck on the sides and it doesnt alawys detect as a line
Oh that is a good idea i am going to implement it right now!
edit : Are you talking about pathfinding? If yes shapecasts have nothing to with it, neither raycast @BlueDeveloper24
Could you update the code with shapecast(you dont have to use for -i,i if you have shapecast/blockcast)
Edit: Im not talking about pathfinding, im talking about when the car is stuck in front of a part
The only time i used raycast in this module is to check if there are walls in between of the target. I don’t think this would change anything since when obstacles are between the target the system will simply use pathfinding
Is there anyway to destroy a ai car without causing any errors or having any memory leaks?
I was looking for something like this and will prove to be super useful.
Quick question is there any issues like memory leaks, performance issues etc that I should know of before use or is it still being developed and bug fixes being provided?
Well this is pretty old but i dont remember any memory leaks in the codebase… However you might need to break the main loop if the car gets destroyed since somebody asked me about that. Well if other people show intrest in this progress i will be happy to continue developing it.
ive already started playing with it and already added func to kill the chases while keeping it looping so should be good. Car AI Chasing module but with a way to kill the chase and chase radius
if you so then great otherwise eh as long as there aren’t many issues then its cool. Ive only seen it use less than 0.0021
mb of memory on the server so it should be fine.
Alright, hope you found it usefull. I wont need to continue developing this then.
Alrighty then. Thanks for the base script. I would like to say that please space your code out a bit. I found it a bit weird reading stuff when everything was stuck together. I have already spaced it out however just for future reference as it would be bad practice to keep everything so close and confined.
Other than that thanks.