Jump to content

vehicle engine state and its lights


Recommended Posts

Posted

i set the vehicles engine state to false (turned off) and turn on the lights. But when I disconnect and connect again to the server, I see that the engine is running and lights are off. Why? and how can I solve it?

Don´t let your fears stand in the way of your dreams!

Posted

the code is working. On the joining into game, there is no code to change the settings of the vehicle.

Don´t let your fears stand in the way of your dreams!

Posted

yess. And I can't see the lights on, when the other player turns that on. Only he can see them.

Don´t let your fears stand in the way of your dreams!

Posted

yes. the server-side code solved the all problems :) thanks.

Did you tried to exit the car before reconnecting? According to the wiki the engine will turn on by default when someone enter the vehicle, if you're in the vehicle when you disconnect you'll be in it as soon you join next time, causing the engine to start again. setVehicleEngineState, could be another reason as well.

-yes I tried everything. even I slap the computer case :mrgreen:

Serverside coding solved :)

Don´t let your fears stand in the way of your dreams!

Posted
yes. the server-side code solved the all problems :) thanks.
Did you tried to exit the car before reconnecting? According to the wiki the engine will turn on by default when someone enter the vehicle, if you're in the vehicle when you disconnect you'll be in it as soon you join next time, causing the engine to start again. setVehicleEngineState, could be another reason as well.

-yes I tried everything. even I slap the computer case :mrgreen:

Serverside coding solved :)

It might be worth remember that client code functions on server code functions on the server.

This might be oblivious for some but for newer coders it is not.

Nikola Tesla is love Nikola Tesla is light.

Email: [email protected]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...