I need to make a projectile ability that collides with doodads/units, does damage and returns a kill to the casting unit. How can i do this, or are there any good tutorials for something like this?
Use the Effect - Target ability type set the Effect - Effect field to a Launch Missile effect. Under that effect set Effect - Impact Effect to you Damage effect, Movement - Movers - Link to a mover of your choice if you dont make one and Unit - Ammo Unit to the missile unit created under Units. You need to create an Action actor to define the launch animation/site and impact art/site and a Missile actor to give the missile unit an appearance.
Ammo Unit is a field of the launch missile - effect
@ResolveHK: Go
For colliding with units, you can apply a behavior to the missile, which periodically searches for enemy units in a small area and causes damage, if it finds one.
For correct kill credit, this behavior should have the Kill Credit - field set to Caster; also the behavior has to be applied, when the missile is launched (use the Launch Effect- field of the launch missile effect for this)
I have no idea, how to handle colliding with doodads, or if it is even possible (well, most likely it is, but I don't know, how).
Yeah, that was really hard to understand, and really hard to follow. It didn't come out right. T_T
Basically, what i'm trying to make is a Snipe ability that will pass through units and do damage. I guess it doesn't have to die when it hits doodads, but it can die after a certain range.
Hmm..yes, i have wanted to use that spell, but i've heard its really hard to work with. Does that spell allow you to use that cool "mouse following" red line on any unit such as Ghost(LaserLines) ?
It is indeed not that easy. The way blizzard implemented the targeting line, it is not multi unit instanceable and if you want to use it on a Ghost, you have to set up the Ghost actor. However without the targeting line, the spell is quite easy to use and functional for any unit.
I need to make a projectile ability that collides with doodads/units, does damage and returns a kill to the casting unit. How can i do this, or are there any good tutorials for something like this?
Please define what you mean by collides. Do you mean hits unit and destroys projectile, pierces unit or changes path if it hits a wall.
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
I'd like it to hit a unit and do damage to it, and once it hits a doodad it destroys itself.
Use the Effect - Target ability type set the Effect - Effect field to a Launch Missile effect. Under that effect set Effect - Impact Effect to you Damage effect, Movement - Movers - Link to a mover of your choice if you dont make one and Unit - Ammo Unit to the missile unit created under Units. You need to create an Action actor to define the launch animation/site and impact art/site and a Missile actor to give the missile unit an appearance.
If in doubt look how marauders do it.
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
What is Unit-Ammo unit? I can't find "Ammo Unit" under the units tab
Ammo Unit is a field of the launch missile - effect
@ResolveHK: Go For colliding with units, you can apply a behavior to the missile, which periodically searches for enemy units in a small area and causes damage, if it finds one.
For correct kill credit, this behavior should have the Kill Credit - field set to Caster; also the behavior has to be applied, when the missile is launched (use the Launch Effect- field of the launch missile effect for this)
I have no idea, how to handle colliding with doodads, or if it is even possible (well, most likely it is, but I don't know, how).
@Kueken531: Go
Ah i see. thanks.
The missile unit is a Projectile type unit. Most ones the game comes with has Weapon as a prefix.
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
Yeah, that was really hard to understand, and really hard to follow. It didn't come out right. T_T
Basically, what i'm trying to make is a Snipe ability that will pass through units and do damage. I guess it doesn't have to die when it hits doodads, but it can die after a certain range.
Do you know the Penetrator Round spell from Jim Raynor in the Belly of the Beast mission? From what you say, it could be exactly what you need.
Then you want a persistant effect with offsets to do the damage and the missile unit to have 0 collision/interaction range and purely be for visuals.
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
@Kueken531: Go
Hmm..yes, i have wanted to use that spell, but i've heard its really hard to work with. Does that spell allow you to use that cool "mouse following" red line on any unit such as Ghost(LaserLines) ?
It is indeed not that easy. The way blizzard implemented the targeting line, it is not multi unit instanceable and if you want to use it on a Ghost, you have to set up the Ghost actor. However without the targeting line, the spell is quite easy to use and functional for any unit.