- Joined
- Dec 16, 2010
- Messages
- 31
How can you reuse a trigger on the same unit?
For example if i have trigger1 and I register it using TriggerRegisterUnitInRange(trigger1, unit1 ...), then it will execute when a unit2 walks within range of unit1. However this stops triggering for unit 2 after the first time. In order for it to trigger again for unit2, he has to get out-of-range of unit1, then come back into range. I would like it to continuously trigger for unit 2 as long as he is in range of unit1. I don't want to use enums, I was just wondering if this is possible with just the trigger.
Also what does ResetTrigger() do exactly?
And what is the difference between TriggerEvaluate() and TriggerExecute()?
For example if i have trigger1 and I register it using TriggerRegisterUnitInRange(trigger1, unit1 ...), then it will execute when a unit2 walks within range of unit1. However this stops triggering for unit 2 after the first time. In order for it to trigger again for unit2, he has to get out-of-range of unit1, then come back into range. I would like it to continuously trigger for unit 2 as long as he is in range of unit1. I don't want to use enums, I was just wondering if this is possible with just the trigger.
Also what does ResetTrigger() do exactly?
And what is the difference between TriggerEvaluate() and TriggerExecute()?