Post
by echoism » Mon Dec 12, 2005 8:56 am
I've been trying to figure out how to use NearestSpawn, but it seems to be quite different from mq2's nearestspawn.
I seem to only get a null value returned anytime I try to use the NearestSpawn tlo.
echo ${NearestSpawn}
echo ${NearestSpawn[0]}
echo ${NearestSpawn[npc]}
all return null.
I can use echo ${Spawn[pc]} which returns my name (like ${Me} )
I can use ${Spawn[npc]} and that'll give me the closest npc. I can use spawn to do partial name matches... but I cannot seem to use spawn, nearestspawn, spawncount, etc to use radius, range, etc.
The closest I can get, is using ${Spawn[npc].NearestSpawn[1]} which returns my toon, as the closest spawn to ${Spawn[npc]}, and I can use ${Spawn[npc].NearestSpawn[2]} which then shows the next closest npc (to the nearest spawn), etc. However, if I change Spawn[npc] to Spawn[pc], this ceases to work, and I only get null returns.
I'm pretty confused about how to use this now. Perhaps its just not working right. Anyone else have any better success with it?
I'd like to be able to iterate over the nth number of nearest spawns to self, but I don't seem to be able to be able to use spawn search parameters.