Garry's Mod Wiki

ENTITY:DrawTranslucent

  ENTITY:DrawTranslucent( number flags )

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.

Arguments

1 number flags
The bit flags from STUDIO enum

Example

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