Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Syntax:
Parameters:
varspace: missionNamespace, Object or Group - variable space in which variable can be set
(Set to Server here so your changes affect all players)
[name, value, public]: Array
name: String - variable name
value: Anything - variable value (if public is true, check publicVariable for what types are supported for broadcast)
public: Boolean, Number or Array of Numbers
Boolean - when true, the variable broadcast is global and persistent Effects of this scripting command are broadcasted over the network and happen on every computer in the network
Number - the variable is set only on the client of given owner (clientOwner) id, or if id is negative, the variable is set on every client except the given one
Array of Numbers - array of owner (clientOwner) IDs
The variable names can be found in the mission files if you unpack them as described earlier in the thread.
Real late to respond, but incase anyone else stumbles across this post, to anyone wanting to know how to give you Personal Money and not just company money is:
player setVariable ["dinero",10000,true];
I dug around in the functions as the server admin and found this. Some editing is difficult because the mod creators aren't primary english speakers. That said I did test this and it does work. You may have to buy something with personal cash for the amount to update (I bought an off road to see it). Recently lost my hard drive and had to start a multi week campaign over and I only play with one other person so I know there are people who need the boost to have fun.
Also, unrelated but I forgot to say a while ago that you use the Local Exec button after entering the command into the Execute box, Server & Global are most of the time, unnecessary aside from changing weather/time/anything that should affect the server as a whole. Just something to add to clear any possible confusion for anyone.