hideObjectGlobal: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 12: | Line 11: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| This command is designed for MP. Hides object on all connected clients as well as JIP. Call on the <u>server only</u>. Can be used on static objects. In SP this command behaves just like [[hideObject]].|DESCRIPTION= | | This command is designed for MP. Hides object on all connected clients as well as JIP. Call on the <u>server only</u>. Can be used on static objects. In SP this command behaves just like [[hideObject]].|DESCRIPTION= | ||
| '''hideObjectGlobal''' object |SYNTAX= | | '''hideObjectGlobal''' object |SYNTAX= | ||
Line 21: | Line 18: | ||
|p1= object: [[Object]] - object to hide |PARAMETER1= | |p1= object: [[Object]] - object to hide |PARAMETER1= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|s2= object '''hideObjectGlobal''' hidden |SYNTAX2= | |s2= object '''hideObjectGlobal''' hidden |SYNTAX2= | ||
Line 30: | Line 26: | ||
|r2= [[Nothing]]|RETURNVALUE2= | |r2= [[Nothing]]|RETURNVALUE2= | ||
|x1= <code>[[hideObjectGlobal]] [[nearestBuilding]] [2500,2500,0];</code> |EXAMPLE1= | |x1= <code>[[hideObjectGlobal]] [[nearestBuilding]] [2500,2500,0];</code> |EXAMPLE1= | ||
|x2= <code>objectname [[hideObjectGlobal]] true;</code> |EXAMPLE2= | |x2= <code>objectname [[hideObjectGlobal]] true;</code> |EXAMPLE2= | ||
| [[hideObject]], [[isObjectHidden]], [[deleteCollection]] |SEEALSO= | | [[hideObject]], [[isObjectHidden]], [[deleteCollection]] |SEEALSO= |
Revision as of 01:41, 17 January 2021
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 static objects. In SP this command behaves just like hideObject.
- Groups:
- Object Manipulation
Syntax
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
- See also:
- hideObjectisObjectHiddendeleteCollection
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
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
- Posted on October 13, 2018 - 18:36 (UTC)
- Tankbuster
- Eventhandlers such as "explosion" will work on hidden objects