Hello. I want to make an ability that fires projectiles in a line and facing to that direction until the ability ends and hits any enemy or wall that collides with the projectile.
I have never made this before so I don't know where to start at all. Also I can't think about such ability in game so it's difficult to make one.
Also I would like to know how to keep firing toward and tracking the mouse cursor.
You want an Effect - Target type ability that uses a Create Persistent effect. Under the ability the Smart Command flag allows the ability to be linked directly to the mouse click. Use Modify Unit effects as the initial and final effects of the Create Persistent effect to turn the unit/turret to the target. You then need to have a single period on the Create Persistent effect that uses your Launch Missile effect at an offset. Under the Launch Missile effect the Effect: Periodic Effect can be used for collision detection.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Thanks! Guess it was similar to regular weapon effects. I'll try it once and I'll tell you when somethings wrong.
By the way, I'm just thinking that doesn't searching enemies periodically damages with short period like 0.0625 sec makes the missile damage multiple times to the target? That problem caused once before.
You can use the No Markers validator to stop that since the damage effect applies marker to the target units. Units like the hellion and colossus also use that validator to stop attacking the same targets several times.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
If that is not what you want then what do you want for "I would like to know how to keep firing toward and tracking the mouse cursor"?
Thought you wanted it to pierce foes. If you want it to destroy itself on contact you use a Set effect for the periodic of the missile that uses two damage effects. The first hits the target and the second has the Kill flag and targets the source (the missile).
If you set the Create Persistent that it uses the source unit as a starting point it is. Check the knockback ability of Alarak as an example.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I mean that I would like to track the mouse cursor while the ability is on. The first problem I mentioned is not that. The ability activates whenever I right click.
And I just noticed that the impact model won't show at the point where hit enemy but at the end of the projectile range.
So turn the ability on and then it constantly fires at the cursor? You probably will need triggers for that. Use a Behavior type ability to apply a Buff behaviour that the trigger event recognises. This trigger then turns on another trigger that periodically uses the effect towards the x/y coordinates of the mouse.
You will need a second Action actor linked to the Damage effect for creating the impact visuals.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Speaking of effects, I have a problem with my Search Area Effect. It's not the one from the ability I told at the first. It's from a dash ability that dashes toward and searches for enemy periodically. Since there are no missiles to collide but just a unit to go pass through, it damages multiple times.
I tried the marker, setting count to 1 and checking the "ID" match flag and the No Marker validator you told but nothing worked. So I searched for Kerrigan's Psi Strike ability and one of the Coop Pirate Ship's ability that slowly goes forward damaging any unit passing through. And I of course did the same settings to the marker and other effects. But it doesn't seem to work. Any suggestions please?
If you do not want to see the original impact model then remove it from the Action actor.
Some of those abilities apply a buff on the target units that prevent other searches targeting the unit using a Unit Compare Behaviour Count validator.
So for the Effect of the search area, I need to set is to a set effect that involves damage effect and an apply behavior effect which gives targets a buff behavior doing nothing but only has the Unit Compare validator? Is that it?
The set effect has the validator so it is not applied to units with the buff. The buff itself has a low duration but is enough to prevent the unit being hit multiple times. You could even make the validator require the caster effect history and make the buff stack allowing multiple units to attack at once.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hello. I want to make an ability that fires projectiles in a line and facing to that direction until the ability ends and hits any enemy or wall that collides with the projectile.
I have never made this before so I don't know where to start at all. Also I can't think about such ability in game so it's difficult to make one.
Also I would like to know how to keep firing toward and tracking the mouse cursor.
It would be nice to give me a tip.
You want an Effect - Target type ability that uses a Create Persistent effect. Under the ability the Smart Command flag allows the ability to be linked directly to the mouse click. Use Modify Unit effects as the initial and final effects of the Create Persistent effect to turn the unit/turret to the target. You then need to have a single period on the Create Persistent effect that uses your Launch Missile effect at an offset. Under the Launch Missile effect the Effect: Periodic Effect can be used for collision detection.
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
In reply to DrSuperEvil:
You can use the No Markers validator to stop that since the damage effect applies marker to the target units. Units like the hellion and colossus also use that validator to stop attacking the same targets several times.
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
In reply to DrSuperEvil:
If that is not what you want then what do you want for "I would like to know how to keep firing toward and tracking the mouse cursor"?
Thought you wanted it to pierce foes. If you want it to destroy itself on contact you use a Set effect for the periodic of the missile that uses two damage effects. The first hits the target and the second has the Kill flag and targets the source (the missile).
If you set the Create Persistent that it uses the source unit as a starting point it is. Check the knockback ability of Alarak as an example.
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
In reply to DrSuperEvil:
So turn the ability on and then it constantly fires at the cursor? You probably will need triggers for that. Use a Behavior type ability to apply a Buff behaviour that the trigger event recognises. This trigger then turns on another trigger that periodically uses the effect towards the x/y coordinates of the mouse.
You will need a second Action actor linked to the Damage effect for creating the impact 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
In reply to DrSuperEvil:
If you do not want to see the original impact model then remove it from the Action actor.
Some of those abilities apply a buff on the target units that prevent other searches targeting the unit using a Unit Compare Behaviour Count validator.
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
In reply to DrSuperEvil:
The set effect has the validator so it is not applied to units with the buff. The buff itself has a low duration but is enough to prevent the unit being hit multiple times. You could even make the validator require the caster effect history and make the buff stack allowing multiple units to attack at once.
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