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?
|
In response to SuperAntx
|
|
How exactly..
|
In response to Chwgt
|
|
Chwgt wrote:
How exactly.. Why not just change client.mob to the RC Car? |
In response to Hell Ramen
|
|
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.
|
In response to FranquiBoy
|
|
I think mob/Move() would be better, less over-ridingish.
|
In response to Hell Ramen
|
|
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.
|
In response to FranquiBoy
|
|
Can you show me example?
|
In response to FranquiBoy
|
|
This works perfectly...
world |
In response to Chwgt
|
|
Actually this is much better --
client/North() |
In response to Increndium
|
|
How is that MUCH better? It's less efficient!
|
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.