Garry's Mod Wiki

ents.FindByName

  table ents.FindByName( string name )

Description

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

Doesn't do anything on client.

Arguments

1 string name
The targetname to look for

Returns

1 table
A table of all found entities