Difference between revisions of "alive"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "|= Game version" to "|Game version=")
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
| ofp |= Game name
| ofp |Game name=
|1.00|= Game version
|1.00|Game version=
|arg= global |= Arguments in MP
|arg= global |Multiplayer Arguments=

Revision as of 01:21, 31 August 2019

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


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


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


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

Additional Information

See also:


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


Bottom Section

Posted on October 19, 2015 - 23:48 (UTC)
Pierre MGI
Alive or not could be the question! in multi-player, missions come with respawn module(s). When a player is dead shot, (alive player) will return false, then almost immediately true if the "revive" respawn template is enabled, then could turn on false if time for assistance is elapsed or if the player activates the respawn menu before; and finally true after player respawns. Just be aware that in that case (respawn + revive enabled), the status of the player is toggling: true false true false true. Then, alive status while player is waiting for being rescued could lead to some error scripts as player is supposed to be alive but in limbo and the dead entity "player" passed to server.