Check around cell And mob dead

Tio Akima

New member
Messages
349
Points
0
Age
36
Discord
TioAkima#0636
Github
Tio Akima
Emulator
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?

 
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:

 

 
Last edited by a moderator:
Back
Top