AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Forward, help (https://forums.alliedmods.net/showthread.php?t=163953)

usaexelent 08-05-2011 14:03

Forward, help
 
How can i push play forward using velocity? And how can i push them back?

ConnorMcLeod 08-05-2011 14:14

Re: Forward
 
1) velocity_by_aim with positive value
2) velocity_by_aim with negative value

usaexelent 08-05-2011 14:19

Re: Forward
 
Thanks a lot I didn't know what those were for

usaexelent 08-05-2011 14:36

Re: Forward
 
How can I make that if the player is looking at the sky he wouldn't go up?

Exolent[jNr] 08-05-2011 14:40

Re: Forward
 
Set the z velocity to 0 so player doesn't move up.

usaexelent 08-05-2011 14:59

Re: Forward, help
 
and what if the player whants to jump?

ConnorMcLeod 08-05-2011 15:06

Re: Forward, help
 
Store his Z velocity
do velocity_by_aim
set z vector to the previous z value
set new velocity

usaexelent 08-05-2011 15:15

Re: Forward, help
 
And how do I do that if player is looking in the sky he would move forward.Not to sky but forward (Not forward were he is looking)


All times are GMT -4. The time now is 03:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.