Jump to content
  • 0
Tio Akima

Check around cell And mob dead

Question

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

1 answer to this question

Recommended Posts

  • 0

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 by PB&JJ

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.