Garry's Mod Wiki


  ENTITY:DrawTranslucent( number flags )


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.


1 number flags
The bit flags from STUDIO enum


The default action for this hook is to call ENTITY:Draw.

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