Garry's Mod Wiki

Entity:IsPlayer

Entity:IsPlayer

boolean Entity:IsPlayer()

Description

Checks if the entity is a player or not.

Returns

1 boolean
Whether the entity is a player.

Example

Checks if two entities are players.

print( Entity( 1 ):IsPlayer() ) print( ents.FindByClass( "prop_physics" )[ 1 ]:IsPlayer() )
Output:
true false

Special Pages


Wikis

?

Render Time: 58ms

DB GetPage 42
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 6