Revision Difference
ENTITY:DrawTranslucent#553004
<function name="DrawTranslucent" parent="ENTITY" type="hook">
<ishook>yes</ishook>⤶
<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( flags )
-- This is here just to make it backwards compatible.
-- You shouldn't really be drawing your model here unless it's translucent
self:Draw( flags )
end
</code>
</example>