lifeState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the life state of the given unit. |= Description
| Returns the life state of the given unit.
 
Can be one of:
*"ALIVE"
*"UNCONSCIOUS"
*"DEAD" |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''lifeState''' unit |= Syntax
| '''lifeState''' unit |= Syntax


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


|p2= |= PARAMETER2  
|p2= |= PARAMETER2  
Line 21: Line 26:




|x1= <pre>_ls = lifeState loon // _ls brings back "ALIVE", "UNCONSCIOUS", "DEAD" </pre>|= EXAMPLE1  
|x1= <code>_ls <nowiki>=</nowiki> lifeState loon;</code> |= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 04:46, 15 July 2009

Hover & click on the images for description

Description

Description:
Returns the life state of the given unit. Can be one of:
  • "ALIVE"
  • "UNCONSCIOUS"
  • "DEAD"
Groups:
Uncategorised

Syntax

Syntax:
lifeState unit
Parameters:
unit: Object
Return Value:
String

Examples

Example 1:
_ls = lifeState loon;

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

Bottom Section