Entity.SetNotSolid

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetNotSolid( Boolean NotSolid )
Description:
If NotSolid is true, all collisions and traces are disabled on the entity. All props, players, the World, and traces (toolguns, physguns) will pass through the entity.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetNotSolid]Entity.SetNotSolid [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will make the entity not solid to anything.
Used onNewerServer.png
Code
function ENT:Initialize()
   self:SetModel("models/props_c17/oildrum001.mdl")
   self:SetNotSolid(true)
end
OutputThis barrel is now not solid to anything


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox