ProjectedTexture/IsValid

From Garry's Mod
Jump to: navigation, search
 ProjectedTexture:IsValid( )

Description

Returns true if the projected texture is valid (i.e. has not been removed), false otherwise.

Instead of calling this directly it's a good idea to call IsValid in case the variable is nil.

IsValid( ptexture )

This not only checks whether the projected texture is valid - but also checks whether it's nil.

Returns

boolean

Whether the projected texture is valid.
Personal tools
Navigation