Garry's Mod Wiki

Garry's Mod Wiki

  Entity:SetRenderFX( number renderFX )

Description

Sets entity's render FX. Requires the entitys rendermode to support transparency.

Arguments

1 number renderFX
The new render FX to set, see kRenderFx enum

Example

Fades a entity out and removes it.

local ent = Entity( 5 ) ent:SetRenderMode( RENDERMODE_TRANSCOLOR ) ent:SetRenderFX( kRenderFxFadeSlow ) timer.Simple( 3, function() SafeRemoveEntity( ent ) 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...