gta.bullet 39 Posted November 29 I am trying to teleport to waypoint properly, i tried various methods but cant find a perfect one. I tried using 02CE: [email protected] = ground_z_at [email protected] [email protected] [email protected] but it wont return correct z, i also tried putting these two opcodes before ground_z opcode, but still cant get correct z 03cb: load scene [email protected] [email protected] [email protected] 04e4: load collision [email protected] [email protected] full code :TELEPORT 0ab6: waypoint pos [email protected] [email protected] [email protected] 03cb: load scene [email protected] [email protected] [email protected] 04e4: load collision [email protected] [email protected] 02ce: [email protected] = get z at [email protected] [email protected] [email protected] gosub @RESET fade 0 2000 while fading wait 0 end if actor.Driving($PLAYER_ACTOR) then [email protected] = actor.CurrentCar($PLAYER_ACTOR) car.PutAt([email protected], [email protected], [email protected], [email protected]) else actor.PutAt($PLAYER_ACTOR, [email protected], [email protected], [email protected]) end fade 1 0 Quote Share this post Link to post Share on other sites
OrionSR 1,853 Posted November 30 (edited) A Z coordinate of -100.0 works well to place the player at the proper Z level. Example Spoiler 0172: [email protected] = get_char_heading $PLAYER_ACTOR 01B4: set_player_control $PLAYER_CHAR to 0 04BB: set_area_visible 0 04FA: clear_extra_colours 0 057E: set_radar_as_interior 0 04E4: request_collision [email protected] [email protected] 03CB: load_scene [email protected] [email protected] 0.0 00D6: if 0256: is_player_playing $PLAYER_CHAR 004D: goto_if_false @Finish 0860: set_char_area_visible $PLAYER_ACTOR to 0 00A1: set_char_coordinates $PLAYER_ACTOR to [email protected] [email protected] -100.0 0173: set_char_heading $PLAYER_ACTOR to [email protected] :Finish 0001: wait 0 00D6: if 0256: is_player_playing $PLAYER_CHAR 004D: goto_if_false @Finish 01B4: set_player_control $PLAYER_CHAR to 1 0373: set_camera_behind_player 02EB: restore_camera_jumpcut 0002: jump @OSRWARP These codes won't work as well without the 0256: checks; I'm not sure why. Your Z coord from 02CE: might work better in this context. Also, teleporting to ground Z + 1.0 might place CJ on the ground instead of buried waste deep. Edited November 30 by OrionSR Quote Share this post Link to post Share on other sites