Garry's Mod Wiki

Revision Difference

Entity:TestPVS#518298

<function name="TestPVS" parent="Entity" type="classfunc"> <description> Check if the given position or entity is within this entity's 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="testPoint" type="any">&lt;page&gt;Entity&lt;/page&gt; or &lt;page&gt;Vector&lt;/page&gt; to test against. If an entity is given, this function will test using its bounding box.</arg> <arg name="testPoint" type="any"><page>Entity</page> or <page>Vector</page> to test against. If an entity is given, this function will test using its bounding box.</arg> </args> <rets> <ret name="" type="boolean">True if the testPoint is within our PVS.</ret> </rets> </function>