Jump to content
Sign in to follow this  
infection

set vehicle var name for each new player

Recommended Posts

Hello, I've ran into some problems with a script I have that recreates vehicle on server startup and gives them a varname, this is all done from the server, however once the clients load in, it's not the same as on the server.

It's important that it's the same as the client calls the server for the object to be deleted.

_tent setVehicleInit format[
"
this setVehicleVarName '%1_Tent'; 
%1_Tent = this; 
this setDir %2; 
", _uid, _roledir]; 		

processInitCommands;

now the processinitcommand is global, however I'm guessing the varname dosn't get set for new players that join, would anyone have a solution to this? Thanks.

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  

×