ents.FindByName

From Garry's Mod
Revision as of 22:43, 30 April 2016 by NeatNit (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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