ENT.IsTranslucent

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameIsTranslucent
SyntaxENT:IsTranslucent( )
DescriptionReturn true if this entity is translucent
ReturnsBoolean
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=ENT.IsTranslucent]ENT.IsTranslucent [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionChecks if the entity is translucent
Used onNewerClient.png
Code
//Variable ENTITY is an entity for the purposes of this example
 
if ENTITY:IsTranslucent() then
 Msg("The Entity is translucent")
else
 Msg("The Entity is not translucent")
end
 
 
//If the entity is translucent, then "The Entity is translucent" will be printed to the console. Otherwise, it will print "The Entity is not translucent".
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox