hideObjectGlobal

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.12
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the networkThis scripting command must be executed on the server to work properly in multiplayer

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.12

Description

Description:
This command is designed for MP. Hides object on all connected clients as well as JIP. Call on the server only. Can be used on all objects with class names, i.e. (typeOf object != ""). In SP this command behaves just like hideObject.

Syntax

Syntax:
hideObjectGlobal object
Parameters:
object: Object - object to hide
Return Value:
Nothing

Alternative Syntax

Syntax:
object hideObjectGlobal hidden
Parameters:
object: Object
hidden: Boolean - true->hidden; false->visible
Return Value:
Nothing

Examples

Example 1:
hideObjectGlobal nearestBuilding [2500,2500,0];
Example 2:
objectname hideObjectGlobal true;

Additional Information

Multiplayer:
-
See also:
hideObjectisObjectHiddendeleteCollection

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

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 September 1, 2016 - 12:04 (UTC)
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.
Posted on August 7, 2017 - 12:44 (UTC)
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