Garry's Mod Wiki

Revision Difference

ents.FindByClassAndParent#514586

<function name="FindByClassAndParent" parent="ents" type="libraryfunc">⤶ <description>Finds all entities that are of given class and are children of given entity. This works internally by iterating over <page>ents.GetAll</page>.</description>⤶ <realm>Shared</realm>⤶ <file line="2">lua/includes/extensions/ents.lua</file>⤶ <args>⤶ <arg name="class" type="string">The class of entities to search for</arg>⤶ <arg name="parent" type="Entity">Parent of entities that are being searched for</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="table">A table of found entities or nil if none are found</ret>⤶ </rets>⤶ </function>⤶ ⤶