Garry's Mod Wiki

CLuaEmitter:SetNearClip

  CLuaEmitter:SetNearClip( number distanceMin, number distanceMax )

Description

This function sets the the distance between the render camera and the emitter at which the particles should start fading and at which distance fade ends ( alpha becomes 0 ).

Arguments

1 number distanceMin
Min distance where the alpha becomes 0.
2 number distanceMax
Max distance where the alpha starts fading.