Fandom

武装突袭 Wiki

PublicVariableClient

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2: Operation Arrowhead
版本:
1.62

描述

描述:
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).

Arma 3 logo black.png In Arma 3 it is possible to broadcast nil value

基本句法

句法:
clientID publicVariableClient varName
参数:
clientID: Number

varName: String
返回值:
Nothing

范例

范例1:
3 publicVariableClient "CTFscoreOne";

额外资讯

多人游戏:
-
也可以看看:

ownerpublicVariablepublicVariableServeraddPublicVariableEventHandler

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

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

Posted on 21 Sep, 2013
Killzone_Kid
While publicVariable is JIP compatible and persistent, publicVariableClient is not. If you log out then log in with the same owner id the public variable sent to your client prior will be nil. //server pv = 123; 3 publicVariableClient "pv"; //connected client with id 3 hint str pv; //123 // //client log out/log in // //client id is still 3 hint str pv; //error, undefined variable pv

Bottom Section

Posted on April 12, 2015 - 09:27 (UTC)
Killzone Kid
Tested in Arma 3 v1.43, publicVariableClient works client-to-client if owner id of the targeted client is known.

更多维基

随机维基