- Joined
- May 20, 2008
- Messages
- 433
I wish to have units gain the ability to enter a vehicle when 100x away, but when they are not, they lose the ability.
Giving the unit the ability is simple (when [triggering unit] is 100 away from unit add ability). The issue is removing the ability, as there is nothing I'm aware of that checks if a unit is '=>100' away from unit. I'm thinking of using a buff as a way to check distance (every X seconds, if unit has [buff] add ability else remove ability), but I'm wondering if there is a simpler way.
Giving the unit the ability is simple (when [triggering unit] is 100 away from unit add ability). The issue is removing the ability, as there is nothing I'm aware of that checks if a unit is '=>100' away from unit. I'm thinking of using a buff as a way to check distance (every X seconds, if unit has [buff] add ability else remove ability), but I'm wondering if there is a simpler way.