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.

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

Doesn't do anything on client.

Arguments

1 string name
The targetname to look for

Returns

1 table
A table of all found entities

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 3
Generate Html 4
SaveChanges (1) 8
Render Body 0
Render Sidebar 12