Arma 3 Scripting

Command in Object Manipulation

hideObjectGlobal

Also available as Markdown and JSON, or read the original wiki page.

Description

This command is designed for MP. Hides object on all connected clients as well as JIP. Can be used on static objects. In singleplayer this command behaves just like hideObject.

Syntax

Syntax 1

hideObjectGlobal object

Parameters:

Returns: Nothing

Syntax 2

object hideObjectGlobal hidden

Parameters:

Returns: Nothing

Examples

Example 1

hideObjectGlobal myObject; // hides myObject
hideObjectGlobal nearestBuilding [2500, 2500, 0];

Example 2

myObject hideObjectGlobal true;    // hides myObject
myObject hideObjectGlobal false;    // shows myObject

Example 3

[myObject, true] remoteExec ["hideObjectGlobal", 2]; // remote-executes hideObjectGlobal from a client to the server

See also

hideObject · isObjectHidden · deleteCollection

Community notes

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)

Demellion

As of A3 1,62.134494 running hideObjectGlobal in big loop may cause some objects not to be hidden for a players already connected or passed JIP. To avoid players rendering desync consider running that in preInit schedule of a server.

DrSova

In A3 1.72.142342 when you hide object via hideObjectGlobal, model sounds still be audible. For e.g. if you delete apex house from map, you still hear a conditioner sound at this spot

Tankbuster

Eventhandlers such as "explosion" will work on hidden objects