Uncle
Warcraft Moderator
- Joined
- Aug 10, 2018
- Messages
- 7,867
So i'm making a custom Shop system with pages and categories and I wanted to know of a good way to determine if a unit has come into buying range of a Shop. I have some ideas, but I'd like to know what you guys would do.
So the first two ideas that come to mind are:
1) A unit comes within Range of the Shop (The event or using a periodic timer to compare positions)
2) Detect when a shop uses it's "Select User" ability or one of it's other Shop-related abilities
Option 2 doesn't seem to work, but this would probably be the best option if I could get it to work. The idea of using a timer and constantly setting points sounds pretty inefficient to me, but maybe I'll have to settle with that.
Any suggestions?
So the first two ideas that come to mind are:
1) A unit comes within Range of the Shop (The event or using a periodic timer to compare positions)
2) Detect when a shop uses it's "Select User" ability or one of it's other Shop-related abilities
Option 2 doesn't seem to work, but this would probably be the best option if I could get it to work. The idea of using a timer and constantly setting points sounds pretty inefficient to me, but maybe I'll have to settle with that.
Any suggestions?
Last edited: