CMoveData/SetVelocity

From Garry's Mod
Jump to: navigation, search
 CMoveData:SetVelocity( )

Contents

Description

Sets the player's velocity

Arguments

Vector velocity

The velocity to set

Examples

Example

Make the player shake to hell and back.

function GM:SetupMove( ply, movedata )
    movedata:SetVelocity( VectorRand() * 800 )
end


Personal tools
Navigation