Player.SprayDecal

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SprayDecal( Vector world_orgin, Vector local_direction )
Description:
Causes a player to spray their decal from the absolute position of the first vector in a local direction specified by the second vector.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SprayDecal]Player.SprayDecal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSpray's a player's decal below them.
Used onNewerServer.png
Code
 
function SprayDown( pl )
     pl:SprayDecal(pl:GetPos(),-pl:GetUp())
end
 
OutputThe player's decal will now appear beneath their feet.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox