Raised This Month: $ Target: $400
 0% 

Velocity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 09-22-2012 , 09:57   Velocity
Reply With Quote #1

I want to set a players velocity to the same velocity as a entity; So a player can still stand on it and move around on it as the entity moves to. This is a snip of what I have so far, but when the player stands on the entity the players velocity is off. All i want is the players velocity to match the entity's velocity so he/she can run/walk/stand on it like a func_train entity works.

PHP Code:
pevidpev_velocityvelocity1 );
peviEntitypev_velocityvVelocity2 );

nVelocity[0] = (velocity1[0] + (vVelocity2[0]));
nVelocity[1] = (velocity1[1] + (vVelocity2[1]));
nVelocity[2] = (velocity1[2] + (vVelocity2[2]));
set_pevidpev_velocitynVelocity ); 
Thanks
Pastout is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:21.


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