Entity.SetCollisionGroup

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetCollisionGroup( Integer collidegroup )
Description:
Sets the entity's collision group. It takes an integer that corresponds to a collision group enumeration.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetCollisionGroup]Entity.SetCollisionGroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMake the entity not collide with other entities.
Used onNewerServer.png
Code
function DontCollide(ent)
   ent:SetCollisionGroup(COLLISION_GROUP_DEBRIS)
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox