I don't want to make this a long text so I will just cut to the chase. I am in a situation where I made a unit shoot in whatever direction the click is. I created an ability and actors and all to make it happen on click. I ran into a few issues.
1. I can't figure out how to add sound to my ability (aka gauss rifle sound) Got it (thanks B0ne123)
2. The effect (damage) SHOULD deal 30 damage, but instead if does only a TINY amount (1-2). (changing the amount of damage in the effect doesn't even change anything in game). (Thanks JPLetters!)
3. The effect damages my ally's unit's and buildings even though I set the search to exclude ally.
Thanks ahead for you time!
PS: if anyone has a better solution to making an "on click" shooting visual + damage, let me know !
1. guide
2. maybe is something wrong with the connections between the effects?
3. if a missile flies to a clicked location, where did you add a search? exclude ally from the dmg effect.
Thanks for the tutorial link, I will give that sucker a shot! Otherwise, check out the map. Don't look too much into the rest of the map, I haven't done any real mapping or balancing and a lot of the mechanics aren't fully operational / buggy.
There were a few things wrong with your linking of effects. Your ability only needs to fire the launch effect so remove the damage effect from the ability. Next, your launch missile effect only needs the impact effect of the damage, not another launch effect as well.
For the damage thing, I'd fiddle around with the "fraction" area of your damage search. I set it to 100 for testing purposes and 1-shot everything in the base. :)
(And as an aside but still relating to this ability... you can add events to your marine's actor to play animations when the ability is used so you don't have to fire them through triggers. Same effect either way of course... it just seems cleaner to have it all bottled in the data editor and only have to fire the ability with a trigger.)
you need search fraction = 1 to do 100% dmg
yours is 0
all about sounds and animations is in the tutorial linked above and in the other (shockwave) tutorial in rileystarcrafts blog
friendly fire: you excluded 'ally' from the search but not 'player'.... ;)
the buildings in the starting base are 'player'
Hey folks,
I don't want to make this a long text so I will just cut to the chase. I am in a situation where I made a unit shoot in whatever direction the click is. I created an ability and actors and all to make it happen on click. I ran into a few issues.
1.
I can't figure out how to add sound to my ability (aka gauss rifle sound)Got it (thanks B0ne123)2.
The effect (damage) SHOULD deal 30 damage, but instead if does only a TINY amount (1-2). (changing the amount of damage in the effect doesn't even change anything in game).(Thanks JPLetters!)3. The effect damages my ally's unit's and buildings even though I set the search to exclude ally.
Thanks ahead for you time!
PS: if anyone has a better solution to making an "on click" shooting visual + damage, let me know !
@ZiplockSC2: Go
you miht want to look into this guide:
http://forums.sc2mapster.com/development/tutorials/3647-data-create-a-missile-weapon-from-scratch/
1. guide
2. maybe is something wrong with the connections between the effects?
3. if a missile flies to a clicked location, where did you add a search? exclude ally from the dmg effect.
post your map and let us take a look
@b0ne123: Go
Alright, I uploaded the map here: http://www.sc2mapster.com/maps/sc2-renegade/files/1-sc2-renegade/.
Thanks for the tutorial link, I will give that sucker a shot! Otherwise, check out the map. Don't look too much into the rest of the map, I haven't done any real mapping or balancing and a lot of the mechanics aren't fully operational / buggy.
Thanks!
@ZiplockSC2: Go
So I played with this for a few minutes. :P
There were a few things wrong with your linking of effects. Your ability only needs to fire the launch effect so remove the damage effect from the ability. Next, your launch missile effect only needs the impact effect of the damage, not another launch effect as well.
For the damage thing, I'd fiddle around with the "fraction" area of your damage search. I set it to 100 for testing purposes and 1-shot everything in the base. :)
(And as an aside but still relating to this ability... you can add events to your marine's actor to play animations when the ability is used so you don't have to fire them through triggers. Same effect either way of course... it just seems cleaner to have it all bottled in the data editor and only have to fire the ability with a trigger.)
@JPLetters: Go
You sir, are amazing, thank you so much! Now I just need to fix the friend fire !
you need search fraction = 1 to do 100% dmg
yours is 0
all about sounds and animations is in the tutorial linked above and in the other (shockwave) tutorial in rileystarcrafts blog
friendly fire: you excluded 'ally' from the search but not 'player'.... ;)
the buildings in the starting base are 'player'