util/Decal

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Update released)
Line 20: Line 20:
 
}}
 
}}
 
{{Arg
 
{{Arg
|type=boolean
+
|type=Entity
|name=dontSendToPredictedPlayer
+
|name=ignoreEnt
|desc=Don't network this decal to the player currently set for use by {{GlobalFunction|SuppressHostEvents}}.
+
|desc={{NextUpdate}}
  
Set this to true if you are using this function in a predicted context such as a weapon.
+
If set, the decal will not be able to be placed on given entity.
|default=false
+
|default=NULL
 
}}
 
}}

Revision as of 15:10, 9 February 2017

 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

Entity ignoreEnt=NULL

Next Update Change

This feature is only available in the next update.
If set, the decal will not be able to be placed on given entity.
Personal tools
Navigation