Thread: Passing Objects
View Single Post
  #9  
Old 06-05-2006, 06:05 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
I didn't bother to read anything, so I'm just throwing in some (hopefully) related information.
On my server, I reserve attr[2] to attr[5] of every NPC for specific things.
attr[4] is the NPC's identifier; it's a value based on the NPC's index. If I want to refer the serverside to a specific NPC found on the clientside, it uses this to figure out which NPC I want.
It's basically a way for me to pass a reference to this NPC from the clientside to the serverside, or vice-versa.
Reply With Quote