Game Development Community

How to make the player transmit

by ChenJian · in Torque Game Engine · 07/13/2007 (2:29 am) · 3 replies

I would like my player transmitted to another place when he enters into a tigger, how to realize this? I remember that there is an function can do this, but I forget the function's name, it seems like this functionname($player,"0 0 0").
Anyone can help me?

#1
07/13/2007 (4:03 am)
Just call .setTransform("");

Example assuming 4321 is your player id:
4321.setTransform("300 200 100 1 0 0 0");

First 3 params are xyz, rest is orientation.
#2
07/14/2007 (9:31 pm)
Thanks, Martin. It really saves me from the puzzledom.
#3
07/20/2007 (10:47 pm)
What you could do is this so that it sets the position but keeps the player's view direction.

4321.setTransform("300 200 100" @ getWords(4321.getTransform(), 4, 7));