util/Decal
From Garry's Mod
(Difference between revisions)
Robotboy655 (Talk | contribs) |
(The filter can also be a table) |
||
Line 6: | Line 6: | ||
{{Arg | {{Arg | ||
|type=string | |type=string | ||
− | |name= | + | |name=name |
|desc=The name of the decal to paint. | |desc=The name of the decal to paint. | ||
}} | }} | ||
{{Arg | {{Arg | ||
|type=Vector | |type=Vector | ||
− | |name= | + | |name=start |
|desc=The start of the trace. | |desc=The start of the trace. | ||
}} | }} | ||
{{Arg | {{Arg | ||
|type=Vector | |type=Vector | ||
− | |name= | + | |name=end |
|desc=The end of the trace. | |desc=The end of the trace. | ||
}} | }} | ||
{{Arg | {{Arg | ||
|type=Entity | |type=Entity | ||
− | |name= | + | |name=filter |
|desc={{NextUpdate}} | |desc={{NextUpdate}} | ||
− | If set, the decal will not be able to be placed on given entity. | + | 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 | ||
}} | }} |
Revision as of 21:27, 10 February 2017
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.