MetaGamer Posted January 21, 2011 Author Share Posted January 21, 2011 ummm. But what is the reason behind that?. In SA-MP it's easy to do it Link to comment
DiSaMe Posted January 21, 2011 Share Posted January 21, 2011 In SA-MP there's no function to simulate keypresses at all. And you can only make the bot drive by changing velocity of car or recording the actions and playing them back. That is possible in MTA too, but if you want them to actually drive, you need to simulate keypresses (what you can't do in SA-MP). Actually, it may be hard to make the bot drive properly, but making it simply follow the route isn't that difficult. Link to comment
MetaGamer Posted January 21, 2011 Author Share Posted January 21, 2011 hmm it's like impossible Link to comment
NotAvailable Posted January 21, 2011 Share Posted January 21, 2011 I found a resource called: world-peds That spawns walking peds. Like on GTA SA Singleplayer. heres the link to the resource: https://community.multitheftauto.com/index.php?p= ... ls&id=1319 Link to comment
MetaGamer Posted January 21, 2011 Author Share Posted January 21, 2011 thankz Jesse. Now I can try warpPedIntoVehicle and let me see it works or not EDIT: IT does not work. I can't control ped's Link to comment
NotAvailable Posted January 21, 2011 Share Posted January 21, 2011 thankz Jesse. Now I can try warpPedIntoVehicle and let me see it works or notEDIT: IT does not work. I can't control ped's Hmmm.... I cant go anyfurther. Ideas empty Scripting knowledge to small. Link to comment
Castillo Posted January 21, 2011 Share Posted January 21, 2011 thankz Jesse. Now I can try warpPedIntoVehicle and let me see it works or notEDIT: IT does not work. I can't control ped's lol, is not that easy to create them.. Link to comment
MaddDogg Posted January 22, 2011 Share Posted January 22, 2011 On the thing with SAMP bots: They just drive a patch predriven by you. They have no ability to follow you and just drive their prerecorded thing. I guess this is done by just saving the positions periodically at recording and later on having the bot drive from one point to the next, which is still quite easy to do. To actually make a dynamically driving and following bot, you would have to do something like this: Program the AI to find the (best) route to you, around obstacles, react to situations like when they hit a wall or when their car is upside down or when another player hinders them (rams them). And that's not all to it. To accomplish all that needs a LOT of work, skill and plain old time. It's something, which is out of reach for 99% of the people visiting this forum, and the rest is not willing to put so much effort in a still very basic AI, I would guess. I hope you now understand, why we can't help you with this. And since you seem to be very new to scripting, this is just nothing in your reach right now. Link to comment
SDK Posted January 22, 2011 Share Posted January 22, 2011 If you want the same functionality as SAMP use this then, it's for race and does actually exactly what you need ... The closest thing you could get may be this (but it has no AI): https://community.multitheftauto.com/index.php?p= ... ils&id=665 If you want more drivers, you can use the code from it and record multiple drivers. Happy scripting! Link to comment
MetaGamer Posted January 22, 2011 Author Share Posted January 22, 2011 thankz but how will i make it opaque other than transparent car? Link to comment
proracer Posted January 22, 2011 Share Posted January 22, 2011 https://wiki.multitheftauto.com/wiki/SetElementAlpha Link to comment
SDK Posted January 22, 2011 Share Posted January 22, 2011 Look in playback_client.lua and change these lines: setElementAlpha( result.ped, 100 ) setElementAlpha( result.vehicle, 100 ) 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