util/Decal

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Add new parameter. Might need renaming.)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=Decal
 
|Parent=util
 
 
|Description=Performs a trace and paints a decal to the surface hit.
 
|Description=Performs a trace and paints a decal to the surface hit.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No
 +
|Name=Decal
 +
|Parent=util
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 20: Line 20:
 
|name=traceEnd
 
|name=traceEnd
 
|desc=The end of the trace.
 
|desc=The end of the trace.
 +
}}
 +
{{Arg
 +
|type=boolean
 +
|name=dontSendToPredictedPlayer
 +
|desc=Don't network this decal to the player currently set for use by {{GlobalFunction|SuppressHostEvents}}.
 +
 +
Set this to true if you are using this function in a predicted context such as a weapon.
 +
|default=false
 
}}
 
}}

Revision as of 08:31, 29 June 2016

 util.Decal( )

Contents

Description

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

Arguments

string decalName

The name of the decal to paint.

Arguments

Vector traceStart

The start of the trace.

Arguments

Vector traceEnd

The end of the trace.

Arguments

boolean dontSendToPredictedPlayer=false

Don't network this decal to the player currently set for use by SuppressHostEvents.

Set this to true if you are using this function in a predicted context such as a weapon.
Personal tools
Navigation