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>")
 
(41 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.00


|1.00|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Hides the body of the given person. |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| '''hideBody''' person |= Syntax
|game4= tkoh
|version4= 1.00


|p1= person: [[Object]] |= Parameter 1
|game5= arma3
|version5= 0.50


| [[Nothing]] |= Return value
|arg= local
____________________________________________________________________________________________
 
|x1= <code>hideBody [[player]]</code> |= Example 1
____________________________________________________________________________________________


| |= See also
|eff= global


}}
|gr1= Object Manipulation
 
|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.
 
|s1= [[hideBody]] unit
 
|p1= unit: [[Object]] - person


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>hideBody player1;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[deleteVehicle]] [[setDamage]] [[addToRemainsCollector]]
[[Category:Scripting Commands|HIDEBODYD]]
}}
[[Category:Scripting Commands ArmA|HIDEBODY]]
[[Category:Command_Group:_Object_Manipulation|{{uc:{{PAGENAME}}}}]]

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