Fandom

武装突袭 Wiki

Local

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.00

描述

描述:
Check if given unit is local on the computer in Multiplayer games (see Locality in Multiplayer for general concepts).


This can be used when some activation fields or scripts need to be performed only on one computer. In Single player all objects are local.



Note1: Map created objects (those placed in Visitor) are local everywhere.
Note2: Since Arma 3 v1.53.132932 keyword local has been renamed to private for consistency and to avoid any confusion. However, this just makes the third example obsolete. It's core functionality still remains.

基本句法

句法:
local object
参数:
object: Object or Group (since Arma 3 v1.31.127204)
返回值:
Boolean

范例

范例1:
SQS:?!local _unitName : hint "remote"

范例2:
SQF:if (!local _unitName) then {

   hint "remote";

};

范例3:
_isLocalGroup = local group _unit;

额外资讯

多人游戏:
-
问题:
In MP remote objects are not initialised in functions called by initline or init eventhandlers.
也可以看看:

Local Event HandlerownersetOwner

注意事项

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

Notes

Posted on August 4, 2006 - 10:56
hardrock
Notes from before the conversion:

In multiplayer, a game logic will always be local to the host computer. This works on both dedicated and player-hosted servers.


Bottom Section

更多维基

随机维基