heroes9898 Posted June 3, 2014 Share Posted June 3, 2014 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? Link to comment
heroes9898 Posted June 3, 2014 Author Share Posted June 3, 2014 the code is working. On the joining into game, there is no code to change the settings of the vehicle. Link to comment
heroes9898 Posted June 3, 2014 Author Share Posted June 3, 2014 yess. And I can't see the lights on, when the other player turns that on. Only he can see them. Link to comment
Mr_Moose Posted June 3, 2014 Share Posted June 3, 2014 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. Link to comment
heroes9898 Posted June 3, 2014 Author Share Posted June 3, 2014 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 Serverside coding solved Link to comment
Atton Posted June 4, 2014 Share Posted June 4, 2014 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 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. Link to comment
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