Jump to content

Finding a walkable path and applying an effect along it


mwneo

Recommended Posts

For the visualization of a custom ability, I would like to do the following:

  • Find a (walkable) path from the soldier's position to the target square
  • Apply an effect to said path - either highlighting the whole thing or a particle effect moving along the path

Ideally I'd like to use the pathing for the target location validation as well - so that only squares that the soldier could actually walk to are valid targets locations for the ability.

Any pointers are appreciated.

Link to comment
Share on other sites

I've seen that mod before but had forgotten the name. It was one of the reasons why I thought this should be possible somehow, so thanks for reminding me :).

 

However, while I can see how to put a mesh on the pathing tiles from this, it works with vanilla movement to get the path in the first place. I'd need some way to calculate a path between 2 tiles from within my ability script.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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