Garry's Mod Wiki

Player:GetAimVector

Description

Returns the direction that the player is aiming.

Returns

1 Vector
The direction vector of players aim

Example

Launches the player in the direction they're facing.

local ply = Entity( 1 ) ply:SetVelocity( ply:GetAimVector() * 1000 )

Page Links


Special Pages


Wikis

?

Render Time: 21ms

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