util/Decal
From Garry's Mod
(Difference between revisions)
(Add new parameter. Might need renaming.) |
|||
Line 24: | Line 24: | ||
|type=boolean | |type=boolean | ||
|name=dontSendToPredictedPlayer | |name=dontSendToPredictedPlayer | ||
− | |desc=Don't network this decal to the player currently set for use by {{GlobalFunction|SuppressHostEvents}}. | + | |desc={{NextUpdate}} |
+ | |||
+ | 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. | Set this to true if you are using this function in a predicted context such as a weapon. | ||
|default=false | |default=false | ||
}} | }} |
Revision as of 08:32, 29 June 2016
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.