View Single Post
  #2  
Old 08-24-2003, 10:00 AM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
it's another way of naming the players?
each player has an index in a level...

it's like the index of showimg. it's just another way of singleling out one thing from another...

NPC Code:

// -- This will grab each player IN the
// -- current level of the NPC and warp them to 30,30;
for(i=0; i<playerscount; i++) {
player[i].x = 30;
player[i].y = 30;
}



^It grabs the player by index, and not account name or anything like that.

I don't know how to explain it :-p.
__________________
Knuckles
"They say 60% of the time, it works everytime!"
Reply With Quote