• 0
Sign in to follow this  
Zell

Make a Cell wakable not standable to attack

Question

Hello.

I want to make a cell where it is walkable but not standable when attacking. I can obtain this behavior when mob is only walking.

I use water cells to make my mobs do not stop in this cell while random walk (it works), but when they search a monster and goes to attack, they ignore this condition and stop in water cells.

unknown.png

with no enemies, walk and stop only in not water cells

unknown.png

but when fighting (they have 3 of attack range)

unknown.png

Already changed the map_getcell with a new chkcell to something like return (!cell.wakable && cell.water) but it does not work.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
3 hours ago, Zell said:

Hello.

I want to make a cell where it is walkable but not standable when attacking. I can obtain this behavior when mob is only walking.

I use water cells to make my mobs do not stop in this cell while random walk (it works), but when they search a monster and goes to attack, they ignore this condition and stop in water cells.

unknown.png

with no enemies, walk and stop only in not water cells

unknown.png

but when fighting (they have 3 of attack range)

unknown.png

Already changed the map_getcell with a new chkcell to something like return (!cell.wakable && cell.water) but it does not work.

cant you just make the grid bigger and give them more range ?

 

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Naruto said:

cant you just make the grid bigger and give them more range ?

 

Doest not matter the range. Ranged monster when attacking sometimes stand in a water cell too.

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.   Paste as plain text instead

  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...
Sign in to follow this