ents.FindByClassAndParent

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

Contents

Description

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

Arguments

string class

The class of entities to search for

Arguments

Entity parent

Parent of entities that are being searched for

Returns

table

A table of found entities or nil if none are found
Personal tools
Navigation