alive

From Bohemia Interactive Community
Revision as of 18:27, 19 June 2015 by Killzone Kid (talk | contribs) (old misformatted note moved to discussions, feel free to ressurect it in proper format)
Jump to navigation Jump to search
Introduced with Operation Flashpoint version 1.001.00Arguments of this scripting command don't have to be local to the client the command is executed on
Hover & click on the images for descriptions

Description

Description:
Check if given vehicle/person/building is alive (i.e. not dead or destroyed). alive objNull returns false.

Syntax

Syntax:
alive object
Parameters:
object: Object to test
Return Value:
Boolean: true when alive, false when dead

Examples

Example 1:
SQS: ?!(alive player) : exit
Example 2:
SQF: if (!alive player) exitWith {};

Additional Information

See also:
setDamagedamage

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section