Garry's Mod Wiki

ents.FindByClassAndParent

table ents.FindByClassAndParent( string class, Entity parent )

Description

Finds all entities that are of given class and are children of given entity. This works internally by iterating over ents.GetAll.

Arguments

1 string class
The class of entities to search for
2 Entity parent
Parent of entities that are being searched for

Returns

1 table
A table of found entities or nil if none are found

Page Links


Special Pages


Wikis

?

Render Time: 24ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 11
Render Body 0
Render Sidebar 5