Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 42ms

DB GetPage 3
Generate Html 6
SaveChanges (1) 14
Render Body 0
Render Sidebar 17