Jump to content

Speed


killerkid

Recommended Posts

Hello, And sorry if this has to said before.

 

I would like to know how-to set a vehicle speed in SCM coding.

 

Thanks

Link to comment
Share on other sites

Hello, And sorry if this has to said before.

 

I would like to know how-to set a vehicle speed in SCM coding.

 

Thanks

 

04BA: set_car 34@ speed_instantly 50.0

 

 

- sets the carspeed instantly to the given amount (50.0 = about 300kph)

Yl8KS.jpg
Link to comment
Share on other sites

 

Hello, And sorry if this has to said before.

 

I would like to know how-to set a vehicle speed in SCM coding.

 

Thanks

 

04BA: set_car 34@ speed_instantly 50.0

 

 

- sets the carspeed instantly to the given amount (50.0 = about 300kph)

Thanks,Does this set all the cars to that speed?

Edit: When ever i add it the game crashes confused.gif

 

And when i look it changed it self to "Car.SetSpeedInstantly(33@, 50.0)"

Edited by killerkid
Link to comment
Share on other sites

Hi,

if the value of the opcode is superior to 50.0 the game crash. The local varibles 32@ and 33@ are used for measuring the time. Perhaps this is the cause because it doesn't work.

 

Bye Bye

user posted image

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.