- Joined
- May 1, 2008
- Messages
- 1,605
Moin moin =)
I have a question about this: In my new spell (vJass) a sun (dummy) is moving from one point to another point in high of 350. Now I want create a short lightning from the sun to a random point.
I asked how to do this and get the answer with AddLightningEx because I can set the high with it.
But now the problem: How can I create it like this, that the lightning is shown only for 0.25 seconds and destroyed after this time?
I can't use "call TriggerSpellAction(0.25) and then destroy" because it in a loop. Also I tried it with
but then the lightning isn't shown at all. Also I didn't find something like "AddLightningExTimed" or something =(
Can someone help me with that problem or is there any other way, how I can create an effect like this?
( I tested it with 1 dummy at the dun - 1 dummy at the ground and then the upper dummy cast chain lightning on it. But first it seems to be chain lightning hasn't z and I must remove locust from the ground dummy ... and this isn't good!! )
Thanks - Peace and Greetings
Dr. Boom
I have a question about this: In my new spell (vJass) a sun (dummy) is moving from one point to another point in high of 350. Now I want create a short lightning from the sun to a random point.
I asked how to do this and get the answer with AddLightningEx because I can set the high with it.
But now the problem: How can I create it like this, that the lightning is shown only for 0.25 seconds and destroyed after this time?
I can't use "call TriggerSpellAction(0.25) and then destroy" because it in a loop. Also I tried it with
JASS:
call DestroyLightning(AddLightningEx("AFOD",false,sor.x1,sor.y1,sor.flyhigh,sor.x2,sor.y2,0.))
Can someone help me with that problem or is there any other way, how I can create an effect like this?
( I tested it with 1 dummy at the dun - 1 dummy at the ground and then the upper dummy cast chain lightning on it. But first it seems to be chain lightning hasn't z and I must remove locust from the ground dummy ... and this isn't good!! )
Thanks - Peace and Greetings
Dr. Boom