Garry's Mod Wiki

Revision Difference

ents.FindByName#544112

<function name="FindByName" parent="ents" type="libraryfunc"> <description> Gets all entities with the given hammer targetname. This works internally by iterating over <page>ents.GetAll</page>. ⤶ <note>A player's Name is his nickname, see <page>Player:GetName</page></note>⤶ Doesn't do anything on client. </description> <realm>Shared</realm> <args> <arg name="name" type="string">The targetname to look for</arg> </args> <rets> <ret name="" type="table">A table of all found entities</ret> </rets> </function>