hideObject: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 54: | Line 54: | ||
<dt class="note">'''[[User:DamonDaemon|DamonDaemon]]''' | <dt class="note">'''[[User:DamonDaemon|DamonDaemon]]''' | ||
<dd class="note">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. | <dd class="note">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. | ||
<dt class="note">'''[[User:neokika|neokika]]''' | |||
<dd class="note">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. | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 20:10, 24 December 2012
Description
- Description:
- Hide entity. Can be used on soldiers and vehicles, also on static objects.
- Multiplayer:
- Command has local effect, needs to be run on each client.
- Groups:
- Uncategorised
Syntax
Alternative Syntax
- Syntax:
- object hideObject hidden
- Parameters:
- object: Object.
- hidden: Boolean hidden/visible.
- Return Value:
- Nothing
Examples
- Example 1:
hideObject unitName;
- Example 2:
objectName hideObject true;
Additional Information
- See also:
- See also needed
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
- 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;
- 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.