Difference between revisions of "hideBody"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m (Text replacement - " |r1=[[" to " |r1= [[")
 
(45 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|HIDEBODYD]]
+
{{RV|type=command
[[Category:Scripting Commands ArmA|HIDEBODY]]
 
  
 +
|game1= arma1
 +
|version1= 1.00
  
<h2 style="color:#000066"> ''' hideBody '' person'''''</h2>
+
|game2= arma2
 +
|version2= 1.00
  
 +
|game3= arma2oa
 +
|version3= 1.50
  
'''Operand types:'''
+
|game4= tkoh
 +
|version4= 1.00
  
'''person''': [[Object]]
+
|game5= arma3
 +
|version5= 0.50
  
'''Type of returned value:'''
+
|arg= local
  
[[Nothing]]
+
|eff= global
  
'''Compatibility:'''
+
|gr1= Object Manipulation
  
Version 2.10 required.
+
|descr= Hides dead body of the given unit. After a short delay, the body slowly sinks into the ground. After awhile, when group of the unit becomes [[grpNull]], the body gets deleted and becomes [[objNull]]. If applied to alive unit, nothing happens until unit dies, then the unit's body gets hidden. If a dead unit is human player, the body is hidden but not deleted until player respawns.
  
'''Description:'''
+
|s1= [[hideBody]] unit
  
Hides the body of the given person.
+
|p1= unit: [[Object]] - person
  
'''Example''':
+
|r1= [[Nothing]]
  
'''hideBody''' [[player]]
+
|x1= <code>[[hideBody]] player1;</code>
 +
 
 +
|seealso= [[deleteVehicle]], [[setDamage]], [[addToRemainsCollector]]
 +
}}

Latest revision as of 00:46, 8 August 2021

Hover & click on the images for description

Description

Description:
Hides dead body of the given unit. After a short delay, the body slowly sinks into the ground. After awhile, when group of the unit becomes grpNull, the body gets deleted and becomes objNull. If applied to alive unit, nothing happens until unit dies, then the unit's body gets hidden. If a dead unit is human player, the body is hidden but not deleted until player respawns.
Groups:
Object Manipulation

Syntax

Syntax:
hideBody unit
Parameters:
unit: Object - person
Return Value:
Nothing

Examples

Example 1:
hideBody player1;

Additional Information

See also:
deleteVehiclesetDamageaddToRemainsCollector

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