isBurning: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma3 |Game name=
|game1= arma3
|version1= 0.50


|0.50|Game version=
|gr1= Object Manipulation


|gr1= Object Manipulation |GROUP1=
|descr= Returns whether the unit is burning.
This returns true only if unit is damaged by nearby fire, it does '''not''' check whether a fireplace is burning, use [[inflamed]] command for that.


| Returns whether the unit is burning.
|s1= [[isBurning]] unit
This returns true only if unit is damaged by nearby fire, it does '''not''' check whether a fireplace is burning, use [[inflamed]] command for that. |DESCRIPTION=


| '''isBurning''' unit |SYNTAX=
|p1= unit: [[Object]]


|p1= unit: [[Object]] |PARAMETER1=
|r1= [[Boolean]]


| [[Boolean]] |RETURNVALUE=  
|x1= <sqf>if (isBurning player) then { player groupChat "I'm burning!!"; }</sqf>


 
|seealso= [[getBleedingRemaining]] [[setBleedingRemaining]] [[isBleeding]] [[inflamed]]
|x1= <code>[[if]] ([[isBurning]] [[player]]) [[then]] { [[player]] [[groupChat]] "I'm burning!!"; }</code>|EXAMPLE1= 
 
 
| [[getBleedingRemaining]], [[setBleedingRemaining]], [[isBleeding]], [[inflamed]] |SEEALSO=
 
|  |MPBEHAVIOUR=
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 11:23, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns whether the unit is burning. This returns true only if unit is damaged by nearby fire, it does not check whether a fireplace is burning, use inflamed command for that.
Groups:
Object Manipulation

Syntax

Syntax:
isBurning unit
Parameters:
unit: Object
Return Value:
Boolean

Examples

Example 1:
if (isBurning player) then { player groupChat "I'm burning!!"; }

Additional Information

See also:
getBleedingRemaining setBleedingRemaining isBleeding inflamed

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