Jump to content
  • 0

Make a Cell wakable not standable to attack


Question

Posted

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.

2 answers to this question

Recommended Posts

  • 0
Posted
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 ?

 

  • 0
Posted
On 9/11/2019 at 6:23 AM, 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.

@Cydh maybe you can give me some direction? 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...