Garry's Mod Wiki

Player:Alive

Player:Alive

  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

Special Pages


Wikis

?

Render Time: 72ms

DB GetPage 18
Generate Html 2
SaveChanges (1) 43
Render Body 0
Render Sidebar 7