Entity.GetCollisionGroup

From GMod Wiki

Revision as of 14:12, 15 November 2009 by Jimlad (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:GetCollisionGroup( )
Description:
Gets the entity's collision group. It returns an integer that corresponds to a collision group enumeration.
Returns: Enum collision group
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetCollisionGroup]Entity.GetCollisionGroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionWill print collision group of trace entity to console.
Used onNewerShared.png
Code
function TOOL:LeftClick( tr )
    local cGroup = tr.Entity:GetCollisionGroup()
    print( cGroup )
end
OutputCollision group of traced entity.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox