• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

new function getAreaSpectators(pos, area)

Flatlander

Species Developer
Joined
Feb 17, 2009
Messages
2,467
Solutions
3
Reaction score
1,397
Location
Texas
Hello all,
Someone came to me with a request, and with working on my customized version of TFS I don't really have time for these anymore.

Basically they want is a function to get the players in a combat area.
Example:
Code:
local area = {
{0, 1, 0},
{1, 2, 1},
{0, 1, 0},
}

So we need a function that will only pull up players within an area, and put them all in a table.
Anyone up to the task?
(getSpectators would not work, because it would pull the players on the 0 tiles as well)
 
Back
Top