game.AddDecal

From Garry's Mod
Jump to: navigation, search
 game.AddDecal( )

Description

Registers a new decal.

WARNING

There's a rather low limit of around 256 for decals that may be registered and they are not cleared on map load.

Arguments

string decalName

The name of the decal.

Arguments

string materialName

The material to be used for the decal. May also be a list of material names, in which case a random material from that list will be chosen every time the decal is placed.
Personal tools
Navigation