Garry's Mod Wiki

Revision Difference

ENTITY:DrawTranslucent#515762

<function name="DrawTranslucent" parent="ENTITY" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Called when the entity should be drawn translucently.</description>⤶ <realm>Client</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="flags" type="number">The bit flags from &lt;page&gt;STUDIO&lt;/page&gt;</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>