- Joined
- Aug 15, 2010
- Messages
- 216
Hello Brothers,
Today i wanted to state a big problem of my map making hobby , i wanted to add some spice to my map, and this happened, you see :
when a unit "Overloads" with an ability in my map, It turns On a lightning effect trigger and sets vals as casting unit and target,
like this :
every 0.05 seconds of the game
set integerlightning[1] = integerlightning[1] +1
... goes on till integer lightning 5
set lightning point [1] = to position of casting unit with offset
set lightning point [2] = to position of target of casting unit with offset (vals made in the activation trigger)
create lightning effect using this two points
set lightningeffect [integerlightning [1]] = last created lightning effect
and keep this up for 5 times, each time setting the effect to a different array of the integer.
turn off this trigger
turn on lightning destroy
in the next trigger (this is lightning destroy) :
every 0.20 second of game
destroy lightning effect : doing this for lightningeffect 1 to 5
and then i reduce each of the integer lightnings by 1, and then i turn of the trigger.
but the problem is the lightnings wont destroy, they just hang in there forever!
and also, i did this becuase if i used waits, multipile players using the spells and overload, could go into conflict. help me make this brothers, thanks
Today i wanted to state a big problem of my map making hobby , i wanted to add some spice to my map, and this happened, you see :
when a unit "Overloads" with an ability in my map, It turns On a lightning effect trigger and sets vals as casting unit and target,
like this :
every 0.05 seconds of the game
set integerlightning[1] = integerlightning[1] +1
... goes on till integer lightning 5
set lightning point [1] = to position of casting unit with offset
set lightning point [2] = to position of target of casting unit with offset (vals made in the activation trigger)
create lightning effect using this two points
set lightningeffect [integerlightning [1]] = last created lightning effect
and keep this up for 5 times, each time setting the effect to a different array of the integer.
turn off this trigger
turn on lightning destroy
in the next trigger (this is lightning destroy) :
every 0.20 second of game
destroy lightning effect : doing this for lightningeffect 1 to 5
and then i reduce each of the integer lightnings by 1, and then i turn of the trigger.
but the problem is the lightnings wont destroy, they just hang in there forever!
and also, i did this becuase if i used waits, multipile players using the spells and overload, could go into conflict. help me make this brothers, thanks