MetaGamer Posted January 20, 2011 Share Posted January 20, 2011 I am using race gamemode. But how will i add bots and will race with me. Is it hard in mta? Link to comment
MaddDogg Posted January 20, 2011 Share Posted January 20, 2011 Yeah, just create a new topic for every new one sentence question... To have bots race you, you would have to write their AI, and I don't know of any existing script, which includes that. So, yes, it's hard. Link to comment
AcidbRain Posted January 20, 2011 Share Posted January 20, 2011 I'd recommend to use slothbot; with a few lines of code you can have an AI bot roaming on your map. PS: They won't race but they'll shoot at you. Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 so how will i make the AI Link to comment
MaddDogg Posted January 20, 2011 Share Posted January 20, 2011 It's not as easy as you might think, actually it's quite hard. If you just want a bot, which runs around with no clue, follows you or just stands still, then that's no problem. But to write a bot AI, which races you on a track, is way harder. So I'd advise you to refrain from this idea and start off with something easier Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 can anyone give a nice tutorial of how to add it? Link to comment
NotAvailable Posted January 20, 2011 Share Posted January 20, 2011 Here u go: http://www.mediafire.com/file/jugpwpnb7db31nh/bot.zip Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 what is that? EDIT : What is the language? I don't understand the language Link to comment
NotAvailable Posted January 20, 2011 Share Posted January 20, 2011 what is that?EDIT : What is the language? I don't understand the language Language: Indonesian Information: It is a bot, You need slothbot for it. Start slothbot > type: /spawnbot Then there will be a bot spawned on ur location Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 ok. But how will i make him in car? EDIT : Where can i find slothbot Link to comment
NotAvailable Posted January 20, 2011 Share Posted January 20, 2011 ok. But how will i make him in car?EDIT : Where can i find slothbot Hmmm.... maybe warpPedIntoCar Search for: Slothbot in MTA community website Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 (edited) not my car. The bot will follow my car Edited January 20, 2011 by Guest Link to comment
NotAvailable Posted January 20, 2011 Share Posted January 20, 2011 not my car. I bot will follow my car with his own car Maybe read the MTA Wiki. Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 I read it. But found nothing except of On Foot Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 so no one knows how to add a bot in cars Link to comment
Castillo Posted January 20, 2011 Share Posted January 20, 2011 There was some resources that let's you film when you are driving and then you can make a bot do what you did, check mta community. Link to comment
DiSaMe Posted January 20, 2011 Share Posted January 20, 2011 There was some resources that let's you film when you are driving and then you can make a bot do what you did, check mta community. But then the bot will always drive in the same way and the car won't have physics. For example you won't be able to affect it by hitting it with your car. To make a driving bot: 1. Create a car and store it to a variable. 2. Create a ped and store it to a variable too. 3. Use warpPedIntoVehicle to put a ped into the car. 4. Use setPedControlState to make him drive. That's where you need to write the AI yourself. Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 i am using slothbot. How will i properly use warpPedIntoVehicle and setPedControlState properly in slothbot Link to comment
12p Posted January 20, 2011 Share Posted January 20, 2011 Look, check wiki. You are asking too many things, and you just started on MTA. And this kind of script is very hard, even for experienced scripters (of course not impossible). My suggestion: learn LUA a lot, check wiki for help instead of ask everything because there are own jobs/projects on every scripter, and when you get stuck, check the syntax with Notepad++ or something like that, if the problem isn't the syntax then ask here. And maybe, in 1 year, you would have learned enough to do this script. Link to comment
MetaGamer Posted January 20, 2011 Author Share Posted January 20, 2011 thank you kid. But their are no definition of my question. I just need a script where there is a bot which follow's me with car. Just that. And I think it's easy to do with slothbot, but I am not figuring it out Link to comment
SDK Posted January 21, 2011 Share Posted January 21, 2011 If there's nothing on the slothbot wiki about driving, then it probably doesn't have it. There is no public resource afaik for peds driving vehicles, so you'll have to write it all from scratch. The closest thing you could get may be this (but it has no AI): https://community.multitheftauto.com/index.php?p= ... ils&id=665 Link to comment
Slothman Posted January 21, 2011 Share Posted January 21, 2011 the slothbot does not know how to drive. writing an ai for a racing mod is concievable, but a lot more work than itd be worth to me, and would probably work with only the most simple races. Link to comment
MetaGamer Posted January 21, 2011 Author Share Posted January 21, 2011 I just need a bot which follows my car. That's it Link to comment
MaddDogg Posted January 21, 2011 Share Posted January 21, 2011 Is it so hard to understand that it's not that easy? No one will be willing to do that for you just now, since it's something really hard and needs a lot of work. Even very good programmers need quite some time and effort to program such an AI. So just accept, that it's out of your range right now. Try to find an easier task to do, but don't start off with "programming an AI", since that's one of the most difficult parts of game world programming. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now