HeresOtis Posted March 23, 2013 Share Posted March 23, 2013 Is there a function to get a car's max speed? Link to comment Share on other sites More sharing options...
Bad.boy! Posted March 23, 2013 Share Posted March 23, 2013 02E3: $831 = car $789 speed Link to comment Share on other sites More sharing options...
HeresOtis Posted March 23, 2013 Author Share Posted March 23, 2013 02E3: $831 = car $789 speed That's for the car's current speed. I want the opposite function of this: 00AD: set_car [email protected] max_speed_to 10.0 Link to comment Share on other sites More sharing options...
fastman92 Posted March 24, 2013 Share Posted March 24, 2013 Is there a function to get a car's max speed? In case that you will accelerate car yourself: {$CLEO}0000: NOP:is_actor_drivingwait 0if0256: is_player_playing $PLAYER_CHARelse_jump @is_actor_drivingifActor.Driving($PLAYER_ACTOR)else_jump @[email protected] = Actor.CarNoSave($PLAYER_ACTOR)gosub @reset_vars:showwait 0ifActor.Driving($PLAYER_ACTOR)else_jump @restore_traffic01EB: set_traffic_density_multiplier_to 0.003DE: set_pedestrians_density_multiplier_to 0.002E3: [email protected] = car [email protected] [email protected] *= 3.6 if [email protected] <= 0.0 then gosub @reset_vars else if 0035: [email protected] >= [email protected] // (float) then 0085: [email protected] = [email protected] // (int) 0087: [email protected] = [email protected] // (float) end end 0AD1: show_formatted_text_highpriority "highest speed: %.0f km\h time: %d ms" time 2000 [email protected] [email protected] jump @show:restore_traffic01EB: set_traffic_density_multiplier_to 1.003DE: set_pedestrians_density_multiplier_to 1.0jump @is_actor_driving:reset_vars [email protected] = 0.0 // highest speed [email protected] = 0 [email protected] = 0 return Code created on 27th April 2012. Link to comment Share on other sites More sharing options...
HeresOtis Posted March 24, 2013 Author Share Posted March 24, 2013 Thanks Link to comment Share on other sites More sharing options...
Wesser Posted March 25, 2013 Share Posted March 25, 2013 Have a look here. 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
HeresOtis Posted March 25, 2013 Author Share Posted March 25, 2013 Have a look here. Nice findings. Link to comment Share on other sites More sharing options...
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