Player/GetAimVector

From Garry's Mod
Jump to: navigation, search
 Player:GetAimVector( )

Contents

Description

Returns the direction that the player is aiming.

Returns

Vector

The direction vector of players aim

Examples

Example

Launches the player in the direction they're facing.

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


Personal tools
Navigation