Garry's Mod Wiki

Revision Difference

ENTITY:DrawTranslucent#527105

<function name="DrawTranslucent" parent="ENTITY" type="hook"> <ishook>yes</ishook> <description>Called when the entity should be drawn translucently.</description> <description>Called when the entity should be drawn translucently. If your scripted entity has a translucent model, it will be invisible unless it is drawn here.</description> <realm>Client</realm> <predicted>No</predicted> <args> <arg name="flags" type="number">The bit flags from <page>Enums/STUDIO</page></arg> </args> </function> <example> <description>The default action for this hook is to call <page>ENTITY:Draw</page>.</description> <code> function ENT:DrawTranslucent() -- This is here just to make it backwards compatible. -- You shouldn't really be drawing your model here unless it's translucent self:Draw() end </code> </example>