
08-31-2003, 03:24 AM
|
|
call me Chad, it's cooler
|
 |
Join Date: Aug 2002
Posts: 1,899
|
|
|
id is used to tell showcharacter npcs from players
the index is created and used by your client, so each player has their own set of indecies assigned to the other players in the level (allplayers indecies set apart from this, or do those even have indecies? I don't know much about server-side still) so your index is always one
all you need to do is find the player you want with a for loop i.e.
for (i=0;i<playerscount;i++) {
if (flags_to_tell_if_this_is_the_right_player) {
var = i;
then use that index to get the others' coordinates with players[index].x players[index].y
if you read this and still don't get it, my head will explode, cause anything more will be basically handing you a code |
|
|
|