Thread: findLevelLink()
View Single Post
  #1  
Old 08-28-2007, 07:00 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
findLevelLink()

Something such as this would be rather nice:
PHP Code:
function getLevelLinks(level) {
  
temp.linklist findLevel(level).levellinks;
  
temp.linkdata NULL;
  for (
i=0i<temp.links.size(); i++) {
    
temp.link findLevelLink(temp.linklist[i]);
    
temp.linkvars temp.link.getStaticVarNames();
    for (
a=0a<temp.linkvars.size(); a++)
      
temp.linkdata[i][a] = temp.link.(@ temp.linkvars[a]);
  }

There is a TServerLeveLink with these variables (x, y, width, height, destx, and desty), but there's no way I know of to access them like this. This could add new functionality to NPCs such as baddies, so that they can go through links.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote