Garry's Mod Wiki

Player:SprayDecal

Player:SprayDecal( Vector sprayOrigin, Vector sprayEndPos )

Description

Makes a player spray their decal.

Arguments

1 Vector sprayOrigin
The location to spray from
2 Vector sprayEndPos
The location to spray to

Example

Makes the player spray their decal 5000 units away.

local ply = Entity( 1 ) local eyepos = ply:EyePos() ply:SprayDecal( eyepos, eyepos + ply:GetAimVector() * 5000 )

Page Links


Special Pages


Wikis

?

Render Time: 29ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 14
Render Body 0
Render Sidebar 6