Page 1 of 1

Driving a car

Posted: Wed Sep 30, 2009 12:16 pm
by Tenken
Hey everybody,

i've got a new problem. Im trying to spawn an entity that i'd like to make drivable. The problem seems that i dont know how to tag the player in the car. I added a tag on the player's body and one in the driving seat. Is there a way to do this? and how?

thanks!

Re: Driving a car

Posted: Wed Sep 30, 2009 12:58 pm
by ^misantropia^
Is the problem attaching the player to the car or having the car move once the player is in/on it? For the latter case, the code in game/g_mover.c should be a good source of inspiration.

Re: Driving a car

Posted: Wed Sep 30, 2009 1:24 pm
by Tenken
attaching the player to the car seems to be the problem. having the car move works fine