Garry's Mod Wiki

Player:GetAimVector

Player:GetAimVector

Vector 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 )

Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 7