Garry's Mod Wiki

Garry's Mod Wiki

  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.

See ENTITY:Draw for the opaque rendering alternative to this hook.

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...