Garry's Mod Wiki

Garry's Mod Wiki

  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 )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...