ents.FindByName

From Garry's Mod
Jump to: navigation, search
 ents.FindByName( )

Description

Gets all entities with the given hammer targetname. This works internally by iterating over ents.GetAll.

NOTE

A player's Name is his nickname, see Player:GetName

Doesn't do anything on client.

Arguments

string name

The targetname to look for

Returns

table

A table of all found entities
Personal tools
Navigation