• 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!

Lua player:getCount()

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
Is there any function to get player count in same sqm?

tfs 1.2
 
Solution
There's a function that gives you the number of creatures on a tile, but I don't think there's one just for players, so, what you can do is get the position tile, get all the creatures there (getCreatures()) and then iterate through it.
There's a function that gives you the number of creatures on a tile, but I don't think there's one just for players, so, what you can do is get the position tile, get all the creatures there (getCreatures()) and then iterate through it.
 
Solution
Back
Top