| coreys |
08-28-2007 07:00 AM |
findLevelLink()
Something such as this would be rather nice:
PHP Code:
function getLevelLinks(level) { temp.linklist = findLevel(level).levellinks; temp.linkdata = NULL; for (i=0; i<temp.links.size(); i++) { temp.link = findLevelLink(temp.linklist[i]); temp.linkvars = temp.link.getStaticVarNames(); for (a=0; a<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.
|