util.DecalEx

From Garry's Mod
Jump to: navigation, search
 util.DecalEx( )

Contents

Description

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

NOTE

This function has trouble spanning across multiple brushes on the map.

Arguments

IMaterial material

The name of the decal to paint. Can be retrieved with util.DecalMaterial.

Arguments

Entity ent

The entity to apply the decal to

Arguments

Vector position

The position of the decal.

Arguments

Vector normal

The direction of the decal.

Arguments

table color

The color of the decal. Uses the Color structure.

This only works when used on a brush model and only if the decal material has set $vertexcolor to 1.

Arguments

number w

The width scale of the decal.

Arguments

number h

The height scale of the decal.
Personal tools
Navigation