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:
pev( id, pev_velocity, velocity1 );
pev( iEntity, pev_velocity, vVelocity2 );
nVelocity[0] = (velocity1[0] + (vVelocity2[0]));
nVelocity[1] = (velocity1[1] + (vVelocity2[1]));
nVelocity[2] = (velocity1[2] + (vVelocity2[2]));
set_pev( id, pev_velocity, nVelocity );
Thanks