Tio Akima 74 Posted August 18, 2017 Hello guys, I have two doubts about editing in SRC. After summoning a mob using mob->spawn() What function do I use to kill it? (I tried to use mob->dead() but it did not work) Second doubt is I have the coordinate of a cell (x, y) I want to do a check IF() if there is any mob or player around that cell. How to do this check? Quote Share this post Link to post Share on other sites
0 PB&JJ 11 Posted August 18, 2017 (edited) Not sure why mob_dead doesn't work for you. I was going to suggest foreachinrange, but that applies a function. now there is another function called map_count_oncell (called by map->count_oncell) Example code Under the assumption of a rectangular range & positive range value: Edited May 6, 2022 by PB&JJ 1 Tio Akima reacted to this Quote Share this post Link to post Share on other sites
Hello guys,
I have two doubts about editing in SRC.
After summoning a mob using mob->spawn()
What function do I use to kill it?
(I tried to use mob->dead() but it did not work)
Second doubt is
I have the coordinate of a cell (x, y)
I want to do a check IF()
if there is any mob or player around that cell.
How to do this check?
Share this post
Link to post
Share on other sites