| 02-01-2004, 10:26 AM | #1 |
Ok.. i'm making a King of The Hill map, and i got some problems. The problem is that i want an arrow to be created above the head of the hero that is inside the Hill zone. So i take the add Special effect trigger find the Arrow and all those things, and its working fine in game... BUT.. then i want the Arrow to be destroyed when the Hero leaves the zone, and i use the Destroy Special effect trigger, but the only option i have there is to destroy the last created Special effect, and that becomes a major problem when multiple hero's enters and leaves the hill zone. Can anyone help me.. if they understand this question :ggani: Thanks. |
| 02-01-2004, 10:33 AM | #2 |
I believe setting the special effect to a local variable would work. |
| 02-01-2004, 10:35 AM | #3 |
You have to save the (Last Created Special Effect) to a variable right after you create it, or you'll have no way of removing a specific one later. Make a special effects array, Effects, and an integer, i, and use i to keep track of where in the array you are. Make sense? |
