Garry's Mod Wiki

game.AddDecal

game.AddDecal

  game.AddDecal( string decalName, string materialName )

Description

Registers a new decal.

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

Arguments

1 string decalName
The name of the decal.
2 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.

Special Pages


Wikis

?

Render Time: 42ms

DB GetPage 26
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 7