publicVariableClient: Difference between revisions

From Bohemia Interactive Community
(New command missing from the wiki.)
 
(description, see also, note formatting)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Send the variable value to the client computer.  Only type [[Number]] is supported in version 1.33 and before.  The following types are supported since 1.34:  [[Number]], [[Boolean]], [[Object]] and [[Group]].  
| Send the variable value to the client computer - same limitations regarding variable type as [[publicVariable#Description|publicVariable]].


The 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). |= Description   
The 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). |= Description   
Line 25: Line 25:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[publicVariable]], [[publicVariableServer]] |= See also
| [[owner]], [[publicVariable]], [[publicVariableServer]] |= See also


}}
}}
Line 33: Line 33:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on 24 Aug, 2012
<dt class="note">[[User:Kylania|Kylania]]<dd class="note">
publicVariableServer (run on client)<BR>
publicVariableServer (run on client)<BR>
publicVariableClient (run on server)<BR>
publicVariableClient (run on server)<BR>

Revision as of 10:46, 30 August 2012

Hover & click on the images for description

Description

Description:
Send the variable value to the client computer - same limitations regarding variable type as publicVariable. The 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).
Groups:
Uncategorised

Syntax

Syntax:
clientID publicVariableClient varName
Parameters:
clientID: Number
varName: String
Return Value:
Nothing

Examples

Example 1:
3 publicVariableClient "CTFscoreOne";

Additional Information

See also:
ownerpublicVariablepublicVariableServer

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note

Notes

Posted on 24 Aug, 2012
Kylania
publicVariableServer (run on client)
publicVariableClient (run on server)
Publishes a variable (name as STRING) to a specific client, from the server. This is useful where you want to synchronize a variable with only a specific client.
This is a useful way to cut down on network traffic, as publicVariable commands are issued as a priority message. So use publicVariable sparingly, and these commands where they apply. - Rocket

Bottom Section