- Joined
- Feb 27, 2010
- Messages
- 184
In my map there is a shop that is near a cliff. I want units on both below and on the cliff to be able to buy and sell items. Buying works well for both, but selling only works correctly for those that are on the shop's level. For units that are on the cliff, selling only works correctly when the unit is facing the shop exactly - when it's not, pathing takes place and decides that the hero absolutely has to be on the same ground level as the shop to sell, so it starts running the whole path around to sell from there. It's well visible on pictures below:
I think it could be solvable through a trigger that whenever an issue is triggered to a unit targeting this shop, and the unit is nearby, the item gets sold (removed from the game and owner gets gold cost of the item/2 golds), but it feels clunky and it'd be complicated to look good with the animations etc. Isn't there a better way?
I think it could be solvable through a trigger that whenever an issue is triggered to a unit targeting this shop, and the unit is nearby, the item gets sold (removed from the game and owner gets gold cost of the item/2 golds), but it feels clunky and it'd be complicated to look good with the animations etc. Isn't there a better way?
Last edited: