• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Distance to map edge (1 Viewer)

AmericanNero

Seasoned veteran member
Joined
Oct 13, 2020
RedCents
4,709¢
Is there a way to tell how far away a char is from an edge? I know the spawn search has LineOfSight, which must evaluate map geometry in some way. I've gone over commands and properties to the best of my ability but don't see anything exposed that might tell me any map properties.

For example, given a direction, what is the distance to the nearest edge. Thanks for humoring me.
 
the problem with that, is that generally geometry is much smaller than a zone boundary, take a look at zones in meshgen and you will see what i mean.

the entire thing is the zone, but we are placed where the zone designer wanted us, and then geometry is where he wanted it, so i dont think its possible.
 
I had an idea...MQ2Nav computes turns. If I have LOS there shouldn't be any turns. If there were a turn then It could return a distance. This doesn't totally provide what I want but I know the data is there... like anything else though, I probably need to write it and if the devs want to incorporate it that's their prerogative.
 
well, i believe mq2nav computes the least "weight" to get from point a to point b, so turns and whatnot are going to vary by cell size, and weighted areas, etc
 
Hah! I'll run a character around and bop into the edges and record that. JK. Maybe.
 
as sic says, nav works on vectors i thinks they called, so meshatable area is basically one big ass web of vectors, and nav simply calculates the shortest distance between 2 vectors, by examining the web until it ges to where its going.

even if youhave los you cant be certain there wont be course corrections, example:


1623536454195.png
you would have los between those two points, but mesh needs to correct its course to move around
 
Question - Distance to map edge

Users who are viewing this thread

Back
Top
Cart