| 08-10-2008, 09:43 AM | #1 |
Hi all. I'm currently trying to create a spell, which needs a projectile. The trigger associated to the spell should trigger when the projectile hits the target. (I don't mean a projectile with collision system blabla, just a projectile like firebolt). The problem is that, whichever spell I take (shadow strike, thunderbolt, firebolt...) for the base, the trigger will get triggered not when the projectile hits but seems when the hero throw it.... I don't understand because the event is : Code:
call TriggerRegisterAnyUnitEventBJ( gg_trg_Missile_Chain, EVENT_PLAYER_UNIT_SPELL_EFFECT ) So why doesn't my spell get triggered when the projectile hits the target ? In addition, as it is a chain spell and that the trigger gets triggered way too early, all the chain get triggered in a half of second.... (the projectile is supposed to be not that fast) Any idea why it's happening, or to make the trigger get triggered when the projectile hits ? Thanks in advance. |
| 08-10-2008, 09:47 AM | #2 |
You must trigger your spell, there is no event for projectile hit. |
| 08-10-2008, 10:10 AM | #3 |
Or you could use the gui method, waiting until the target unit has the buff associated with the spell. Then remove the buff, and do your stuff. |
| 08-10-2008, 10:19 AM | #4 |
Oh okay. So it's not a bug, every projectile spell will "initiate effect" will trigger this even when it starts casting ? Bah, I'll check if I can do something with your buff method, or use the projectile system included in CS. Thank you both! |
| 08-10-2008, 11:05 AM | #5 |
Problem fixed using ProjectileLaunchToUnit() in caster system! |
