Game Development Community

How to script to dynamically add players

by delinkx · in Technical Issues · 08/06/2008 (7:41 pm) · 6 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

#1
08/06/2008 (8:46 pm)
Players? Or AI?
#2
08/06/2008 (8:55 pm)
Players. i have already done the AI in matlab and i have a text file containing:

PLAYERID, x,y,z, time
....
....
...


So i need read the file and make the players location at each point of time. its just gonna be translation with walk effect.
#3
08/06/2008 (9:01 pm)
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
#4
08/06/2008 (11:51 pm)
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
#5
08/07/2008 (12:46 am)
Will you stop double posting everything you write? You have 2 threads, and 2 double posts.

Anyway, it seems you want ai, otherwise the client will control the player.

look at the aiGaurd tutorial to get a better idea of what you need to do.

And in 0.05 seconds? sounds too short, but you will need to get the speed just right for the running.
#6
08/07/2008 (1:11 am)
Ok.. sorry for the double post.

ok will have a look at the aiguard tutorial.

as for 0.05 seconds thats how the simulation is performed. even the distance is short in tat period. but over the long run, the player should have a smooth walk.