Jump to content
Sign in to follow this  
beita

setVariable public?

Recommended Posts

According to the in-game command completion/help function, setVariable has a 3rd parameter called "public", it is a boolean.

Anyone tested this out yet?

If this is a combination of setVariable and publicVariable, that would be awesome. Would save a lot of extra work.

EDIT:

Just did a quick test. It seems that it is indeed a public setting, when a change occurs on another client, it automatically publicVariable's the change. So, setting the public flag to true will update the variable globally. Some more tests (or some developer's feedback) are in order.

Edited by beita

Share this post


Link to post
Share on other sites

Yeah, your findings are correct. It's the same as the VBS2 version:

setVariable (VBS2)

It's a really usefull command.

Share this post


Link to post
Share on other sites

i tested it with a setvariable ["lock", true|false, true] to inform my server loops to lock/unlock vehicles by player-action .... tested on dedicated server, and it works great!

thanx man!

Edited by Zaphod

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  

×