ID:169624
![]() May 24 2005, 6:46 am
|
|
How would I make it to where, when someone takes control of a RC Car, their client.eye is the RC Cars and they can move the RC Car?
|
Chwgt wrote:
How exactly.. Why not just change client.mob to the RC Car? |
Look up the North(), South(), East(), West() and all for points in between. By overriding those procedures and using step(), you can remote controle something.
|
I tryed that before, but it caused problemes when the mob was moved by other procedures. I find it safer to make a new remote controling procedure with a direction parameter and call that procedure from each direction. It adds 1 line to each directions, not much.
|
This works perfectly...
world |
Actually this is much better --
client/North() |
![]() <-> May 27 2005, 11:35 am
|
|
I would just set the mob variable to the car, but if you don't want to do that...
client Setting the mob variable to the object would accomplish about the same thing. |
In the move proc your going to check to see if they are driving the car or not. If they are, move the car. If not, move the mob.