| 07-09-2005, 09:58 PM | #1 |
Alright I use an aura to detect when a unit is nearby another unit. This system seems to work perfectly save one thing; how can I alter the duration of the aura's effect? I tried changing the aura's duration in the object editor from 0.00 to 0.01 and even 0.10. No change. From what I can tell the aura duration seems to be hardcoded at 4 seconds, however I hope this is not the case. Anyone know if it is truely hardcoded or not? I checked in the Gameplay Constants and saw nothing either... |
| 07-10-2005, 12:14 AM | #2 |
The aura will always maintain when a unit is in range, but once that unit leaves the range, then the duration field kicks in. |
| 07-10-2005, 12:47 AM | #3 |
Aura's have duration? Damn i never knew that. |
| 07-10-2005, 12:47 AM | #4 |
Aura's have duration? Damn i never knew that. |
| 07-10-2005, 06:36 AM | #5 |
Yes I'm aware. The issue is that the duration isnt kicking in at all. I step far outside the range and yet the unit is still registered as having the buff. |
| 07-10-2005, 09:45 AM | #6 |
I am relatively sure it is hardcoded. Can you not use triggers to detect range? |
| 07-10-2005, 10:03 AM | #7 |
Did some testing to verify this. You can't change the 2 second duration (maybe 2.5) no matter what you do. At least i have been unable to, so it must be hardcoded. |
| 07-10-2005, 10:09 AM | #8 |
Yeah, auras have terrible refresh rates. It takes some time to detect when a unit comes in range, and even longer to detect when it's out of range. As far as I know, it's hardcoded. You could get a better refresh rate by triggering it, but triggering an aura could tax the system a lot (checking distances between all units and the hero a couple of times per second, applying/taking away bonuses... hmm, maybe it is doable, if you keep the frequency low, like 4 times per second, it's still incredibly better than what the auras do now), but for your purpose, I guess you don't have to trigger the whole aura, just the distance calculator. |
