Entity.SetNoDraw

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetNoDraw( Boolean shouldNotDraw )
Description:
Allows you to set whether an entity is drawn or not. Passing true will stop the entity from drawing. Passing false will allow the entity to be drawn.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetNoDraw]Entity.SetNoDraw [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionShow an Entity
Used onNewerShared.png
Code
Entity:SetNoDraw( false ) //Shows the Entity
OutputThe entity will now be drawn
DescriptionHide an Entity
Used onNewerShared.png
Code
Entity:SetNoDraw( true ) //Hides the Entity
OutputThe entity will not be drawn


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox