Garry's Mod Wiki

Revision Difference

Entity:SetCollisionBoundsWS#517597

<function name="SetCollisionBoundsWS" parent="Entity" type="classfunc"> <description> Sets the collision bounds for the entity, which are used for triggers ( <page>Entity:SetTrigger</page>, <page>ENTITY:Touch</page> ), determining if rendering is necessary clientside, and collision ( If <page>Entity:SetSolid</page> set as [SOLID_BBOX](/gmod/Enums/SOLID) ). Sets the collision bounds for the entity, which are used for triggers ( <page>Entity:SetTrigger</page>, <page>ENTITY:Touch</page> ), determining if rendering is necessary clientside, and collision ( If <page>Entity:SetSolid</page> set as <page text="SOLID_BBOX">Enums/SOLID</page> ). Input bounds are in world coordinates! See also <page>Entity:SetCollisionBounds</page>. </description> <realm>Shared</realm> <args> <arg name="vec1" type="Vector">The first vector of the bounds.</arg> <arg name="vec2" type="Vector">The second vector of the bounds.</arg> </args> </function>