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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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