Tockra Posted May 16, 2010 Posted May 16, 2010 Hello Guys, i have got 3 questions... 1. I binded a function on enter, which run when the player is on a special point. Now i want not that the player enter an vehicle, when he is on this special position. How can i cancel it? 2. How can i let a bot drive an vehicle in a loop ab special route ? Must i make this with waypoints and let the Bots drive to the waypoints? How can i make it? 3. I want that the courser will show when i press alt GR down and it should be unshown when "press" altGR up here is my code (its client site) but it dont run : http://pastebay.com/98796
karlis Posted May 16, 2010 Posted May 16, 2010 addEventHandler( "onClientResourceStart", getResourceRootElement(),function() bindKey("ralt","both",function() showCursor( not isCursorShowing()) end) end)
dzek (varez) Posted May 16, 2010 Posted May 16, 2010 1: addEventHandler("onClientVehicleStartEnter", getLocalPlayer(), function() if (somethingToCheck) then -- something to check like : getting player pos, then isInsideRadarArea [you have to create radar area fisrt - look at wiki for more info], OR IsElementWithinColShape [you have to create colshape first], OR IsElementWithinMarker .... cancelEvent() end end) 2: peds/bots its more artificial intelligence than scripting.. if you dont know how to make your others problem, im pretty sure you cant do bot .. learn learn learn - https://wiki.multitheftauto.com/
Tockra Posted May 16, 2010 Author Posted May 16, 2010 Funny i read all ped commands and have no idea how i can make waypoints for the bots to which they evers drive...
dzek (varez) Posted May 16, 2010 Posted May 16, 2010 dude! there's no fuction like: driveAround or createWayPoint, or anything like that! As i said - you don't know basics of lua, and you want to make the hardest things.. all drivings are done by: setPedControlState you have to make own waypoints system, then check if ped is on its waypoint, if not turn left/right or slow down or... etc etc.. you have to check a lot of things and controll it all only with setPedControlState
Tockra Posted May 17, 2010 Author Posted May 17, 2010 dude!there's no fuction like: driveAround or createWayPoint, or anything like that! As i said - you don't know basics of lua, and you want to make the hardest things.. all drivings are done by: setPedControlState you have to make own waypoints system, then check if ped is on its waypoint, if not turn left/right or slow down or... etc etc.. you have to check a lot of things and controll it all only with setPedControlState When you now say which commands of setPedControlState i need to use ...
dzek (varez) Posted May 17, 2010 Posted May 17, 2010 you are too lazy to search? https://wiki.multitheftauto.com/wiki/Control_names
Tockra Posted May 17, 2010 Author Posted May 17, 2010 The same site i had but how can i say the bot he shall drive normal (without left or right) ?
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