util/Decal

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Added a list of default decals)
Line 24: Line 24:
 
|desc=If set, the decal will not be able to be placed on given entity. Can also be a table of entities.
 
|desc=If set, the decal will not be able to be placed on given entity. Can also be a table of entities.
 
|default=NULL
 
|default=NULL
 +
}}
 +
{{Example
 +
|Description=Here's a list of all the decal names that should be possible to use by default.
 +
|Code="Antlion.Splat"
 +
"BeerSplash"
 +
"BirdPoop"
 +
"Blood"
 +
"BulletProof"
 +
"Cross"
 +
"Dark"
 +
"ExplosiveGunshot"
 +
"Eye"
 +
"FadingScorch"
 +
"GlassBreak"
 +
"Impact.Antlion"
 +
"Impact.BloodyFlesh"
 +
"Impact.Concrete"
 +
"Impact.Glass"
 +
"Impact.Metal"
 +
"Impact.Sand"
 +
"Impact.Wood"
 +
"Light"
 +
"ManhackCut"
 +
"Nought"
 +
"Noughtsncrosses"
 +
"PaintSplatBlue"
 +
"PaintSplatGreen"
 +
"PaintSplatPink"
 +
"Scorch"
 +
"SmallScorch"
 +
"Smile"
 +
"Splash.Large"
 +
"YellowBlood"
 
}}
 
}}

Revision as of 03:11, 27 November 2017

 util.Decal( )

Contents

Description

Performs a trace and paints a decal to the surface hit.

Arguments

string name

The name of the decal to paint.

Arguments

Vector start

The start of the trace.

Arguments

Vector end

The end of the trace.

Arguments

Entity filter=NULL

If set, the decal will not be able to be placed on given entity. Can also be a table of entities.

Examples

Example

Here's a list of all the decal names that should be possible to use by default.

"Antlion.Splat"
"BeerSplash"
"BirdPoop"
"Blood"
"BulletProof"
"Cross"
"Dark"
"ExplosiveGunshot"
"Eye"
"FadingScorch"
"GlassBreak"
"Impact.Antlion"
"Impact.BloodyFlesh"
"Impact.Concrete"
"Impact.Glass"
"Impact.Metal"
"Impact.Sand"
"Impact.Wood"
"Light"
"ManhackCut"
"Nought"
"Noughtsncrosses"
"PaintSplatBlue"
"PaintSplatGreen"
"PaintSplatPink"
"Scorch"
"SmallScorch"
"Smile"
"Splash.Large"
"YellowBlood"


Personal tools
Navigation