I have a shoot ability that targets a point, and then launches a missile that does damage to the 1st thing it runs into
However, its hitting twice! (i have attack text on and can see it hit twice)
The ability goes as follows:
1. Ability
2. Launch Missile
3. Persistant
4. Search (max count 1)
5. Impact
6. Damage (has a search area max count 1), Suicide, Destroy Persistant
There is a search area in the "4. search effect" and a search area in the "6. damage effect"
If i take out the search area from the 4. Search Effect, then the ability hits only once but only at the directed spot (doesnt hit the guy in front as intended)
So then I tried taking out the search area from 6. Damage, but then the missile runs into the guy in front but there is 0 damage at all
So anyone know why the ability is hitting targets more than once?
Try to exclude "target" from the impact damage effects. Area of Effect damage effects seem to sometimes hit their main target twice, I did not manage to find the exact circumstances, when they do this and when not.
So the damage effect has a Search - xy stuff with max targets 1? The search stuff in damage effects is for splash/AoE damage, so all those fields should be empty (like they are by default).
yep only does the damage twice (i have red attack text trigger when unit receives damage)
could it possibly have to do with "target unit/point" or stuff I picked wrong?
If i change some stuff to "source unit" then yea, the damage goes infinitely until the unit dies lol (funny stuff)
________
ARGH, i just now went and looked through Wingednosering's Straight_Shot tutorial, and copied his ability into mines (in his map spells hits front guy target only once just like i want)
then in my map, his "straightshot" would shoot directly into the ground at the caster going nowhere
so then i took out some of his suicide height effects and got the spell to work
however, It hits the target multiple times also!...why in his map his spell only hits once, but when i get it to work in my map it hits several times lol...
his spell is different than mines too, he uses a behavior on the ammo unit that has the persistant on it, but for some reason in my map its hitting multiple times, just like my spell...
just took off the Persist Until Destroyed flag. and then there was no damage whatsoever
do any of you guys mind making a quick demo map of ability that targets a point and does damage to the first thing it meets ( and only hits once of course lol) no actors, sounds or anything, just the basic spell so I can copy it, and see exactly what im doing wrong
How do you apply the persistent? You need to make sure, the destroy persistent kicks in at the correct location (if you used the launch effect for the missile, this should be source)
You could add an actor for your impact effect, to see exactly, when and how often it triggers.
Unchecking the flag makes the persistent use the period count, which is 0, so it will simply not run at all. Setting it >0 will not fix your problem, though, since it should persist exactly until the moment of impact.
You could also try applying markers and add a no marker validator for the impact, this way it will definitely only hit once.
this tutorial should have a spell as you want it. The Fireball is AoE-Splash on impact with destruction of the projectile, the Plasma Surge uses markers to hit enemies only once.
theses 2 fields were wrong ( i had it on caster unit, and all the target markers for most of my effects were not correct) and thats what caused the multiple hits!
thanks all again, now i can get back to more terraining and doodading hehe
I have a shoot ability that targets a point, and then launches a missile that does damage to the 1st thing it runs into
However, its hitting twice! (i have attack text on and can see it hit twice)
The ability goes as follows:
1. Ability
2. Launch Missile
3. Persistant
4. Search (max count 1)
5. Impact
6. Damage (has a search area max count 1), Suicide, Destroy Persistant
There is a search area in the "4. search effect" and a search area in the "6. damage effect"
If i take out the search area from the 4. Search Effect, then the ability hits only once but only at the directed spot (doesnt hit the guy in front as intended)
So then I tried taking out the search area from 6. Damage, but then the missile runs into the guy in front but there is 0 damage at all
So anyone know why the ability is hitting targets more than once?
Thanks
Try to exclude "target" from the impact damage effects. Area of Effect damage effects seem to sometimes hit their main target twice, I did not manage to find the exact circumstances, when they do this and when not.
@Kueken531: Go
Do you mean set (exclude target) in the (damage effect)?
I just tried that and then there is 0 damage dealt (i can see the missile reach the guy in front then dissipate but no damage)
is there another place to exclude target?
So the damage effect has a Search - xy stuff with max targets 1? The search stuff in damage effects is for splash/AoE damage, so all those fields should be empty (like they are by default).
@Talon0815: Go
Ok i changed the Damage Effect Target - Impact location to Target unit/point
and removed the Search Area+ from the Damage effect
So the only Search Area that exists in the entire ability is in the "search effect"
However the ability still deals damage 2-3 times instead of just once
What exactly is the periodic effect doing?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
the abilities "persistant effect" has the periodic as follows:
Field SHOOT Persistent
Effect - Flags Persist Until Destroyed
Effect - Period Count 0
Effect - Period Durations (0.06)
Effect - Period Effects (SHOOT search)
Sure it only does the damage 2x and not until unit dies?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
yep only does the damage twice (i have red attack text trigger when unit receives damage)
could it possibly have to do with "target unit/point" or stuff I picked wrong?
If i change some stuff to "source unit" then yea, the damage goes infinitely until the unit dies lol (funny stuff)
________
ARGH, i just now went and looked through Wingednosering's Straight_Shot tutorial, and copied his ability into mines (in his map spells hits front guy target only once just like i want)
then in my map, his "straightshot" would shoot directly into the ground at the caster going nowhere
so then i took out some of his suicide height effects and got the spell to work
however, It hits the target multiple times also!...why in his map his spell only hits once, but when i get it to work in my map it hits several times lol...
his spell is different than mines too, he uses a behavior on the ammo unit that has the persistant on it, but for some reason in my map its hitting multiple times, just like my spell...
Smells like your persistent effect going off the rails. Try removing the Persist Until Destroyed flag.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
just took off the Persist Until Destroyed flag. and then there was no damage whatsoever
do any of you guys mind making a quick demo map of ability that targets a point and does damage to the first thing it meets ( and only hits once of course lol) no actors, sounds or anything, just the basic spell so I can copy it, and see exactly what im doing wrong
How do you apply the persistent? You need to make sure, the destroy persistent kicks in at the correct location (if you used the launch effect for the missile, this should be source)
You could add an actor for your impact effect, to see exactly, when and how often it triggers.
Unchecking the flag makes the persistent use the period count, which is 0, so it will simply not run at all. Setting it >0 will not fix your problem, though, since it should persist exactly until the moment of impact.
You could also try applying markers and add a no marker validator for the impact, this way it will definitely only hit once.
this tutorial should have a spell as you want it. The Fireball is AoE-Splash on impact with destruction of the projectile, the Plasma Surge uses markers to hit enemies only once.
THANK YOU Kueken531, DrSuperEvil, Talon0815!!
got it to work!
OMG, Kueken i think your fireball spell is what i based my spell on from a while back!
this was the problem in the destroy persistant
destroy persistent
Target - Location + (None):Source Unit
Target - Marker + 1:(Disabled|Disabled|Disabled|Disabled):(Disabled|Disabled|Disabled|Disabled):Effect/SHOOTdestroypersistent
theses 2 fields were wrong ( i had it on caster unit, and all the target markers for most of my effects were not correct) and thats what caused the multiple hits!
thanks all again, now i can get back to more terraining and doodading hehe