Garry's Mod Wiki

Garry's Mod Wiki

  boolean Player:Alive()

Description

Checks if the player is alive.

Returns

1 boolean
Whether the player is alive

Example

Loops through all the players and kills alive ones.

for i, ply in ipairs( player.GetAll() ) do if ply:Alive() then ply:Kill() end end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...