- Joined
- Sep 7, 2015
- Messages
- 2,758
- Solutions
- 127
- Reaction score
- 2,277
Hello, im trying to count all monsters in area with this function:
Im getting spectators that are in area but how to convert it to number to make statement like this?:
Thank you for any help
Code:
local specs = Game.getSpectators(Position(getCreaturePosition(cid)), false, false, 20, 20, 20, 20)
Code:
if count < 4 then
do something
Thank you for any help