Parsival
Active Member
- Reaction score
- 6
Hi.
I just wanted to make AoE Bash. You know, chance of stunning enemy in range by attacking one of them. I know it's impossible in Object Editor and I need to make a script.
I created ability based on normal Bash ability (has its own buff). Now I want to create dummy unit every time bash is launched and use AoE stun ability. The problem is, I don't know how to detect that target unit got stunned.
Bash is used by range attack unit with quite slow missile speed (takes 1-2s before reaching target). So I cannot make trigger waiting for missile (checking its HP and launching when it becomes smaller), because in this time target can be hit 20 times by other units.
I tried with millions events, conditions, ifs, hashtables...
It seems to be impossible, but I can't believe it :|
The only way I see is scanning for buffed units every ~0.1s, but it seems to be very bad solution when there is ~250 units (so it scans 2500 units per second) on map and 10 players with wooden pcs.
Help pl4x!
I just wanted to make AoE Bash. You know, chance of stunning enemy in range by attacking one of them. I know it's impossible in Object Editor and I need to make a script.
I created ability based on normal Bash ability (has its own buff). Now I want to create dummy unit every time bash is launched and use AoE stun ability. The problem is, I don't know how to detect that target unit got stunned.
Bash is used by range attack unit with quite slow missile speed (takes 1-2s before reaching target). So I cannot make trigger waiting for missile (checking its HP and launching when it becomes smaller), because in this time target can be hit 20 times by other units.
I tried with millions events, conditions, ifs, hashtables...
It seems to be impossible, but I can't believe it :|
The only way I see is scanning for buffed units every ~0.1s, but it seems to be very bad solution when there is ~250 units (so it scans 2500 units per second) on map and 10 players with wooden pcs.
Help pl4x!