{"name":"publicVariableClient","operator":null,"title":"publicVariableClient","type":"command","url":"https://community.bistudio.com/wiki/publicVariableClient","revid":369283,"updated":"2024-09-03T18:42:48Z","groups":["Multiplayer","Variables"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.62"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.62"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Send the variable value to the client computer - same limitations regarding variable type as publicVariable.\n\nThe Client ID is the temporary ID given to a connected client for that session. You can find out this ID with the owner command (using it on a player's character, for example, will give you that players client ID).\n\n> [!NOTE]\n> **Arma 3:** In Arma 3 it is possible to broadcast nil value","syntaxes":[{"syntax":"clientID publicVariableClient varName","since":null,"effect":null,"exec":null,"params":[{"name":"clientID","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"clientID: Number"},{"name":"varName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"varName: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"clientID","types":["Number"]},"right":{"text":"varName","types":["String"]}}],"examples":[{"text":"```sqf\n3 publicVariableClient \"CTFscoreOne\";\n```","code":["3 publicVariableClient \"CTFscoreOne\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["clientOwner","owner","publicVariable","publicVariableServer","addPublicVariableEventHandler","remoteExecutedOwner"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Multiplayer","Command Group: Variables","Introduced with Arma 2: Operation Arrowhead version 1.62","Scripting Commands","Take On Helicopters: Scripting Commands"]}