How to script to dynamically add players
by delinkx · in Torque Game Engine · 08/06/2008 (4:13 am) · 3 replies
Hi..
is there a tutorial or example on how to add players at runtime. using script.
basically wat i want to do is visualize some 100 players in a room, just walking randomly according to coordinates i give.
can anyone just guide me around...
thnx
is there a tutorial or example on how to add players at runtime. using script.
basically wat i want to do is visualize some 100 players in a room, just walking randomly according to coordinates i give.
can anyone just guide me around...
thnx
#2
i have a file with the data of the players at every 0.05 seconds. its like this
playerID, x,y,z, time0
...
...
...
..
...
playerID x,y,z,time0 + 0.05
....
....
...
...
so suppose i have
player1, 10, 10, 10, time0;
....
....
...
player1, 10, 15, 20, time0+0.05;
SO i need to move player1 from point 10,10,10 to point 10,15,20 over the time of 0.05 seconds
08/06/2008 (9:01 pm)
Yes.. similar to this.. but mine is not a game i am making. just a visualisation of a simulation. i dont need collision or path finding.i have a file with the data of the players at every 0.05 seconds. its like this
playerID, x,y,z, time0
...
...
...
..
...
playerID x,y,z,time0 + 0.05
....
....
...
...
so suppose i have
player1, 10, 10, 10, time0;
....
....
...
player1, 10, 15, 20, time0+0.05;
SO i need to move player1 from point 10,10,10 to point 10,15,20 over the time of 0.05 seconds
#3
i have a file with the data of the players at every 0.05 seconds. its like this
playerID, x,y,z, time0
...
...
...
..
...
playerID x,y,z,time0 + 0.05
....
....
...
...
so suppose i have
player1, 10, 10, 10, time0;
....
....
...
player1, 10, 15, 20, time0+0.05;
SO i need to move player1 from point 10,10,10 to point 10,15,20 over the time of 0.05 seconds
08/06/2008 (11:51 pm)
Yes.. similar to this.. but mine is not a game i am making. just a visualisation of a simulation. i dont need collision or path finding.i have a file with the data of the players at every 0.05 seconds. its like this
playerID, x,y,z, time0
...
...
...
..
...
playerID x,y,z,time0 + 0.05
....
....
...
...
so suppose i have
player1, 10, 10, 10, time0;
....
....
...
player1, 10, 15, 20, time0+0.05;
SO i need to move player1 from point 10,10,10 to point 10,15,20 over the time of 0.05 seconds
Torque Owner MARIA SALAZAR
you might get an idea by checking this one
http://tdn.garagegames.com/wiki/Torque/Script/Tutorials/Using_Basic_AI_Commands