Garry's Mod Wiki

Revision Difference

ents.FindInPVS#518293

<function name="FindInPVS" parent="ents" type="libraryfunc"> <description> Finds all entities that lie within a [PVS](https://developer.valvesoftware.com/wiki/PVS). <note>The function won't take in to account <page>Global.AddOriginToPVS</page> and the like.</note> </description> <realm>Server</realm> <args> <arg name="viewPoint" type="any">&lt;page&gt;Entity&lt;/page&gt; or &lt;page&gt;Vector&lt;/page&gt; to find entities within the PVS of. If a player is given, this function will use the player&#x27;s view entity.</arg> <arg name="viewPoint" type="any"><page>Entity</page> or <page>Vector</page> to find entities within the PVS of. If a player is given, this function will use the player's view entity.</arg> </args> <rets> <ret name="" type="table">The found <page>Entity</page>s.</ret> </rets> </function>