Garry's Mod Wiki

Revision Difference

Entity:TestPVS#526896

<function name="TestPVS" parent="Entity" type="classfunc"> <description> Check if the given position or entity is within this entity's PVS. ⤶ See also <page>Entity:IsDormant</page>.⤶ <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"><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>