hideObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dd class="note">([^}]*)<code>([^<]*)<\/code>" to "<dd class="note">$1<sqf>$2</sqf>")
m (Fixed notes)
Line 42: Line 42:
}}
}}


<dl class="command_description">
{{Note
|user= Shuko
|timestamp= 20100715200000
|text= This command will hide a unit, but he will still shoot enemies. Unit will be invisible, but weapon muzzle are visible.
}}


<dt></dt>
{{Note
<dd class="notedate">Posted on July 15, 2010 - 20:00</dd>
|user= McHide
<dt class="note">[[User:Shuko|Shuko]]</dt>
|timestamp= 20110204081300
<dd class="note">This command will hide a unit, but he will still shoot enemies. Unit will be invisible, but weapon muzzle are visible.
|text= Use MP framework to activate this command on all players from server or any other maschine
 
<dt class="note">[[User:McHide|McHide]]</dt>
<dd class="note">Use MP framework to activate this command on all players from server or any other maschine
<sqf>_nic = [nil, mantohide, "per", rHideObject, true ] call RE; // In A3 use hideObjectGlobal instead.</sqf>
<sqf>_nic = [nil, mantohide, "per", rHideObject, true ] call RE; // In A3 use hideObjectGlobal instead.</sqf>
}}


<dt class="note">[[User:DamonDaemon|DamonDaemon]]</dt>
{{Note
<dd class="note">Hidden Vehicles still emit smoke/rotor blade dust and (probably) still emit engine sounds.
|user= DamonDaemon
Useful for creating objects the mission maker doesn't want to be seen, like Units that protect a certain Area (like a safe-zone) against teamkillers or enemy units.</dd>
|timestamp= 20120210063600
|text= Hidden Vehicles still emit smoke/rotor blade dust and (probably) still emit engine sounds.
Useful for creating objects the mission maker doesn't want to be seen, like Units that protect a certain Area (like a safe-zone) against teamkillers or enemy units.
}}


<dd class="notedate">Posted on March 5, 2014 - 16:25</dd>
{{Note
<dt class="note">[[User:Krycek CADelta|[CAD] Krycek]]</dt>
|user= Benargee
<dd class="note">As of today this now finally has a Global counterpart, just released on the Stable branch. Added it is link under See also.
|timestamp= 20141030055400
</dd>
|game= arma3
|version= 1.33
|text= When used on player, it only has an effect on third person mode. First person [[LOD]] is still visible.
}}


<dt></dt>
{{Note
<dd class="notedate">Posted on October 30, 2014 - 05:54 (UTC)</dd>
|user= DreadedEntity
<dt class="note">[[User:Benargee|Benargee]]</dt>
|timestamp= 20150627181400
<dd class="note">When used on player, it only has an effect on third person mode. First person [[LOD]] is still visible. (A3 Dev 1.33)</dd>
|game= arma3
 
|version= 1.45
<dt><dt>
|text= [[hideObject]] and [[hideObjectGlobal]] disable object collision in addition to rendering.
<dd class="notedate">Posted on June 27, 2015 - 18:14 (UTC)</dd>
<dt class="note">[[User:DreadedEntity|DreadedEntity]]</dt>
<dd class="note">
[[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)
(tested by hiding buildings and running through, driving through, flying through, and shooting through where the building used to be)
</dd>
}}
 
</dl>

Revision as of 09:18, 17 August 2022

Hover & click on the images for description

Description

Description:
Hide entity. Can be used on soldiers and vehicles, also on static objects.
Groups:
Object Manipulation

Syntax

Syntax:
hideObject object
Parameters:
object: Object
Return Value:
Nothing

Alternative Syntax

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

Examples

Example 1:
hideObject unitName;
Example 2:
objectName hideObject true;

Additional Information

See also:
isObjectHidden hideObjectGlobal deleteCollection

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
Shuko - c
Posted on Jul 15, 2010 - 20:00 (UTC)
This command will hide a unit, but he will still shoot enemies. Unit will be invisible, but weapon muzzle are visible.
McHide - c
Posted on Feb 04, 2011 - 08:13 (UTC)
Use MP framework to activate this command on all players from server or any other maschine
_nic = [nil, mantohide, "per", rHideObject, true ] call RE; // In A3 use hideObjectGlobal instead.
DamonDaemon - c
Posted on Feb 10, 2012 - 06:36 (UTC)
Hidden Vehicles still emit smoke/rotor blade dust and (probably) still emit engine sounds. Useful for creating objects the mission maker doesn't want to be seen, like Units that protect a certain Area (like a safe-zone) against teamkillers or enemy units.
Benargee - c
Posted on Oct 30, 2014 - 05:54 (UTC)

When used on player, it only has an effect on third person mode. First person LOD is still visible.

DreadedEntity - c
Posted on Jun 27, 2015 - 18:14 (UTC)

hideObject and hideObjectGlobal disable object collision in addition to rendering. (tested by hiding buildings and running through, driving through, flying through, and shooting through where the building used to be)