Jump to content

red pointer on map


chrisblake

Recommended Posts

hi everyone. can someone tell me if there is an op code to make a car drive to the point on the map where you put the red marker?

so i can get in my drivers car and click on the map and they will take me there. any ideas please. thanks

Link to comment
Share on other sites

hi and thanks so much for your reply. im still new to coding but getting good as i can do almost anything i want now and i do have the opcode db witch i use but i have no idea what mem address is. can you please explane or give me an example. thank you for your help and dont mean to bother you. smile.gif

ps. i posted in editing (mr whoopee returns) that i need a little help with. if you have time could you take a look please. thank you. smile.gif

Link to comment
Share on other sites

that is what i used in SCJ, MB version of code for teleporting player into the spot marked on map upon keypress

 

:SCJ_14700D6: if  1 00E1:   is_button_pressed_pad  0 button  11 00E1:   is_button_pressed_pad  0 button  14 004D: jump_if_false ££SCJ_179 0006: @20 =  48701 ;; integer values:SCJ_1530652: get_stat @20 store_to @21; integer00D6: if  0 8039:   NOT   @21 ==  1180457 ;; integer values004D: jump_if_false ££SCJ_162 00D6: if  0 8039:   NOT   @20 ==  50461 ;; integer values004D: jump_if_false ££SCJ_179 000A: @20 +=  10 ;; integer values0002: jump ££SCJ_153 :SCJ_162000A: @20 += -7 ;; integer values0652: get_stat @20 store_to @21; integer0092: @22 = float_to_integer @21 0093: @22 = integer_to_float @22 000A: @20 +=  1 ;; integer values0652: get_stat @20 store_to @21; integer0092: @23 = float_to_integer @21 0093: @23 = integer_to_float @23 02CE: get_ground_Z_for_3D_coord @22 @23  600.0 store_to @2400A1: set_actor $PLAYER_ACTOR position_3D_coord_to @22 @23 @24 0001: wait  200 ms02CE: get_ground_Z_for_3D_coord @22 @23  600.0 store_to @2400A1: set_actor $PLAYER_ACTOR position_3D_coord_to @22 @23 @24 :SCJ_179end

 

Link to comment
Share on other sites

  • 1 month later...

had to edit the code a bit to get it working. now i can get in a cab, go to map and place the red pointer and the driver will take me there! thanks, could not have done it without you! still hav a few problems to sort out. if i tell the cab/taxi driver to go somewhere in the city im in it works fine but if i want him to drive me to another city he just tries to go there in a straight line without using roads? dont know why. anyway my next plan is to be able to pay the driver extra to run red lights and pay more to speed (can control his speed) but i know how to do all that so its not a problem, just need to fix the city to city thing. when the code is finished ill post it for all to use!

 

thanks for all your help! biggrin.gif

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.