• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Game.getSpectators

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Can someone explain how it works?

  • minRangeX - Minimum range on the x axis (optional, default: 0)
  • maxRangeX - Maximum range on the x axis (optional, default: 0)
  • minRangeY - Minimum range on the y axis (optional, default: 0)
  • maxRangeY - Maximum range on the y axis (optional, default: 0)
Didn't understand it. What mean min/maxRange?
 
Basically it's viewport ranges (screen ranges), like:

WfHdrye.png

See also: https://github.com/otland/forgotten...6fd3dba54b346b42da26d177e94b/src/map.cpp#L377

To be more specific, say you have a center position, you want to search behind that position, so you'd provide a minimum X as negative, etc.
 
Last edited:
Back
Top