beita 10 Posted June 12, 2009 (edited) 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 June 12, 2009 by beita Share this post Link to post Share on other sites
UNN 0 Posted June 13, 2009 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
zaphod 0 Posted June 13, 2009 (edited) 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 June 13, 2009 by Zaphod Share this post Link to post Share on other sites