Garry's Mod Wiki

Revision Difference

Enums/COLLISION_GROUP#516095

<cat>enum</cat> <enumeration> <description>Enumerations used by <page>Entity:SetCollisionGroup</page> and <page>Entity:GetCollisionGroup</page>.</description> <fields>{{EnumField|COLLISION_GROUP_NONE|0|Normal</fields>⤶ <fields><item key="COLLISION_GROUP_NONE" value="0">Normal</item><item key="COLLISION_GROUP_DEBRIS" value="1">Collides with nothing but world and static stuff</item><item key="COLLISION_GROUP_DEBRIS_TRIGGER" value="2">Same as debris, but hits triggers. Useful for an item that can be shot, but doesn't collide.</item><item key="COLLISION_GROUP_INTERACTIVE_DEBRIS" value="3">Collides with everything except other interactive debris or debris</item><item key="COLLISION_GROUP_INTERACTIVE" value="4">Collides with everything except interactive debris or debris</item><item key="COLLISION_GROUP_PLAYER" value="5</fields>⤶ </enumeration> {{EnumField|COLLISION_GROUP_DEBRIS|1|Collides with nothing but world and static stuff}}{{EnumField|COLLISION_GROUP_DEBRIS_TRIGGER|2|Same as debris, but hits triggers. Useful for an item that can be shot, but doesn't collide.}}{{EnumField|COLLISION_GROUP_INTERACTIVE_DEBRIS|3|Collides with everything except other interactive debris or debris}}{{EnumField|COLLISION_GROUP_INTERACTIVE|4|Collides with everything except interactive debris or debris}}{{EnumField|COLLISION_GROUP_PLAYER|5}}{{EnumField|COLLISION_GROUP_BREAKABLE_GLASS|6|NPCs can see straight through an Entity with this applied.}}{{EnumField|COLLISION_GROUP_VEHICLE|7}}{{EnumField|COLLISION_GROUP_PLAYER_MOVEMENT|8|For HL2, same as Collision_Group_Player, for TF2, this filters out other players and CBaseObjects}}{{EnumField|COLLISION_GROUP_NPC|9}}{{EnumField|COLLISION_GROUP_IN_VEHICLE|10|Doesn't collide with anything, no traces}}{{EnumField|COLLISION_GROUP_WEAPON|11|Doesn't collide with players and vehicles}}{{EnumField|COLLISION_GROUP_VEHICLE_CLIP|12|Only collides with vehicles}}{{EnumField|COLLISION_GROUP_PROJECTILE|13}}{{EnumField|COLLISION_GROUP_DOOR_BLOCKER|14|Blocks entities not permitted to get near moving doors}}{{EnumField|COLLISION_GROUP_PASSABLE_DOOR|15|Let's the Player through, nothing else.}}{{EnumField|COLLISION_GROUP_DISSOLVING|16|Things that are dissolving are in this group}}{{EnumField|COLLISION_GROUP_PUSHAWAY|17|Nonsolid on client and server, pushaway in player code}}{{EnumField|COLLISION_GROUP_NPC_ACTOR|18}}{{EnumField|COLLISION_GROUP_NPC_SCRIPTED|19}}{{EnumField|COLLISION_GROUP_WORLD|20|Doesn't collide with players/props}}{{EnumField|LAST_SHARED_COLLISION_GROUP|21|Amount of COLLISION_GROUP_ enumerations}}⤶ {{EnumField">COLLISION_GROUP_BREAKABLE_GLASS|6|NPCs can see straight through an Entity with this applied.</item><item key="COLLISION_GROUP_VEHICLE" value="7}}{{EnumField">COLLISION_GROUP_PLAYER_MOVEMENT|8|For HL2, same as Collision_Group_Player, for TF2, this filters out other players and CBaseObjects</item><item key="COLLISION_GROUP_NPC" value="9}}{{EnumField">COLLISION_GROUP_IN_VEHICLE|10|Doesn't collide with anything, no traces</item><item key="COLLISION_GROUP_WEAPON" value="11">Doesn't collide with players and vehicles</item><item key="COLLISION_GROUP_VEHICLE_CLIP" value="12">Only collides with vehicles</item><item key="COLLISION_GROUP_PROJECTILE" value="13}}{{EnumField">COLLISION_GROUP_DOOR_BLOCKER|14|Blocks entities not permitted to get near moving doors</item><item key="COLLISION_GROUP_PASSABLE_DOOR" value="15">Let's the Player through, nothing else.</item><item key="COLLISION_GROUP_DISSOLVING" value="16">Things that are dissolving are in this group</item><item key="COLLISION_GROUP_PUSHAWAY" value="17">Nonsolid on client and server, pushaway in player code</item><item key="COLLISION_GROUP_NPC_ACTOR" value="18}}{{EnumField">COLLISION_GROUP_NPC_SCRIPTED|19</item><item key="COLLISION_GROUP_WORLD" value="20">Doesn't collide with players/props</item><item key="LAST_SHARED_COLLISION_GROUP" value="21">Amount of COLLISION_GROUP_ enumerations</item>⤶ }}