Fandom

武装突袭 Wiki

HideObject

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.06

描述

描述:
Hide entity. Can be used on soldiers and vehicles, also on static objects.

基本句法

句法:
hideObject object
参数:
object: Object
返回值:
Nothing

替代句法

句法:
object hideObject hidden
参数:
object: Object.

hidden: Boolean hidden/visible.
返回值:
Nothing

范例

范例1:
hideObject unitName;

范例2:
objectName hideObject true;

额外资讯

多人游戏:
Command has local effect, needs to be run on each client.
也可以看看:

isObjectHiddenhideObjectGlobaldeleteCollection

注意事项

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

Notes

Posted on July 15, 2010 - 20:00
Shuko
This command will hide a unit, but he will still shoot enemies. Unit will be invisible, but weapon muzzle are visible.

McHide
Use MP framework to activate this comand on all players from server or any other maschine _nic = [nil, mantohide, "per", rHideObject, true ] call RE; //In A3 use hideObjectGlobal instead.

Demonized
you can use code as in example 2, where true = ON and false = OFF, if using it like in example 1, you can only turn it ON

DamonDaemon
using this locally causes the player/object disappear only locally; has to be executed serverside if used in MP. Hidden Vehicles still emit smoke/rotor blade dust and (probably) still emit engine sounds. Usefull for creating objects the map-creator doesn't want to be seen, like Units that protect a certain Area (like a safe-zone) against teamkillers or enemy units.

neokika
The above comment is partially incorrect, if the effects of the command are local then it must be executed in every machine so it has global effect. If it is run only on the server machine, it will only be hidden on the server, while clients still see it.

Posted on March 5, 2014 - 16:25
[CAD] Krycek
As of today this now finally has a Global counterpart, just released on the Stable branch. Added it's link under See also.

Bottom Section

Posted on October 30, 2014 - 05:54 (UTC)
Benargee
When used on player, it only has an effect on third person mode. First person LOD is still visible. (A3 Dev 1.33)

Posted on June 27, 2015 - 18:14 (UTC)
DreadedEntity
hideObject and hideObjectGlobal disable object collision in addition to rendering. A3 1.45.131175 (tested by hiding buildings and running through, driving through, flying through, and shooting through where the building used to be)

Posted on January 26, 2016 - 22:34 (UTC)
Bloodwyn1756
Sometimes it´s easier to teleport the object about 100m under the ground (also JiP Support): _obj setPosATL [getPosATL _obj select 0, getPosATL _obj select 1, (getPosATL _obj select 2)-100]; And to unhide: _obj setPosATL [getPosATL _obj select 0, getPosATL _obj select 1, (getPosATL _obj select 2)+100];

更多维基

随机维基