Jump to content
Sign in to follow this  
ablueman

vehicle lock true; update in a global way for multiplayer?

Recommended Posts

Hi. I was doing some simple locking of a vehicle, works for me but not anyone else. Figured this was because the variable was only being updated for me.

How do I update the variable for everyone else in multiplayer.

Anyone got any good tutorials for server side scripting and/or sources for mutiplayer scripting.

Share this post


Link to post
Share on other sites

To make changes / actions taking effect globally, just use setVehicleInit.

I also think the lock command effects all machines anyway, but in general its the way to go.

Just for this example:

_vehicle setVehicleInit "this lock true"; processInitCommands;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×