hideBody: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] ([a-zA-Z0-9_]+);?<\/code>" to "<sqf>$1 $2;</sqf>")
 
(49 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">''control '' ''' 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= <sqf>hideBody player1;</sqf>
 
|seealso= [[deleteVehicle]] [[setDamage]] [[addToRemainsCollector]]
}}

Latest revision as of 13:17, 5 May 2022

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:
deleteVehicle setDamage addToRemainsCollector

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