Garry's Mod Wiki

Revision Difference

ents.FindByModel#548727

<function name="FindByModel" parent="ents" type="libraryfunc"> <description> Gets all entities with the given model, supports wildcards. This works internally by iterating over <page>ents.GetAll</page>. <bug issue="2872">This currently only supports trailing asterisks (*) for wildcards.</bug> </description> <realm>Shared</realm> <args> <arg name="model" type="string">The model of the entities to find.</arg> </args> <rets> <ret name="" type="table">A table of all found entities.</ret> </rets> </function>