Hello mapster community. Im trying to create a skill shot ability. I found this youtube video and am copying it exactly
Now I'm trying to figure out some of the effects that I would like to add.
I need everything to automatically cast in the direction of your mouse rather than the unit walking within range of a target point.
I also need to add a small knockback ability for when an enemy is hit. I tried to add apply force but it only made the target unit move south slightly regardless of what options I picked. I've also tried using create persistent and search effects but I really have no idea which options to select or what to do.
Another problem I'm having with this ability is that it hits 2 units at once when they are grouped. I removed the area+ and made the missile 0.2 width so it must be very accurate. I would like the missile to only be able to damage one unit.
Also I would like ability range indicators when holding your mouse over the ability. But instead of a circle around your hero I would like a line to appear and show you the direction and range the ability will be used.
Also I would like my Hero to play their attack animation when using the ability. Or even better play another animation that looks like he is shooting something. Currently I'm using a marine actor for this hero.
I know this is alot. Could I get some quick suggestions on how to accomplish some of these?
EDIT: I finally fixed the original problem . My problem now is getting the missile units model to load when using this ability.
EDIT: I fixed the 2nd problem with the model not loading by copying another missiles actor then replacing the birth event with my missile.
You need to have a Projectile Unit for the launch missile effect to use as an Ammo Unit. The Projectile Unit needs to have an actor that is created when the unit is created by the launch missile effect. So make sure that the actor for the Projectile Unit is being created when the unit spawns in the actors events.
Yes, create a new one and set it's actor type to be Missile to have default values for missile actors. Then add the UnitBirth event and your wanted model for it.
The actor type 'missile' gives you the events I posted above so I copied another missile units events and replaced the unit birth with my missile unit.
Unit Birth. Trickshotmissile
Create
Unit birth
AnimBracketStart
Unit death
Destroy
ActorOrphan
Destroy
This did not work. I also tried only adding the birth event and that didn't work either.
Actually this has been solved. I literally copy and pasted another missile actor and just replaced the birth with my missile.
Now I'm trying to figure out some of the effects that I would like to add.
I need everything to automatically cast in the direction of your mouse rather than the unit walking within range of a target point.
I also need to add a small knockback ability for when an enemy is hit. I tried to add apply force but it only made the target unit move south slightly regardless of what options I picked. I've also tried using create persistent and search effects but I really have no idea which options to select or what to do.
Another problem I'm having with this ability is that it hits 2 units at once when they are grouped. I removed the area+ and made the missile 0.2 width so it must be very accurate. I would like the missile to only be able to damage one unit.
Also I would like ability range indicators when holding your mouse over the ability. But instead of a circle around your hero I would like a line to appear and show you the direction and range the ability will be used.
Also I would like my Hero to play their attack animation when using the ability. Or even better play anot her animation that looks like he is shooting something. Currently I'm using a marine actor for this hero.
I know this is alot. Could I get some quick suggestionsearch on how to accomplish some of these?
I also need to add a small knockback ability for when an enemy is hit. I tried to add apply force but it only made the target unit move south slightly regardless of what options I picked. I've also tried using create persistent and search effects but I really have no idea which options to select or what to do.
You can increase the magnitude of force effects by repeatedly applying it with a persistent as well as increasing the pushed unit's movement speed+acceleration. Your problem with orientation is probably a simple target/caster point issue on several effects.
Another problem I'm having with this ability is that it hits 2 units at once when they are grouped. I removed the area+ and made the missile 0.2 width so it must be very accurate. I would like the missile to only be able to damage one unit.
Also I would like ability range indicators when holding your mouse over the ability. But instead of a circle around your hero I would like a line to appear and show you the direction and range the ability will be used.
Check out kerrigan's dash ability from HOTS campaign. No triggers involved.
Also I would like my Hero to play their attack animation when using the ability. Or even better play anot her animation that looks like he is shooting something. Currently I'm using a marine actor for this hero.
Add the appropriate entry in the unit actor's events field. Check out any ladder spellcaster unit.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello mapster community. Im trying to create a skill shot ability. I found this youtube video and am copying it exactly
Now I'm trying to figure out some of the effects that I would like to add.
I need everything to automatically cast in the direction of your mouse rather than the unit walking within range of a target point.
I also need to add a small knockback ability for when an enemy is hit. I tried to add apply force but it only made the target unit move south slightly regardless of what options I picked. I've also tried using create persistent and search effects but I really have no idea which options to select or what to do.
Another problem I'm having with this ability is that it hits 2 units at once when they are grouped. I removed the area+ and made the missile 0.2 width so it must be very accurate. I would like the missile to only be able to damage one unit.
Also I would like ability range indicators when holding your mouse over the ability. But instead of a circle around your hero I would like a line to appear and show you the direction and range the ability will be used.
Also I would like my Hero to play their attack animation when using the ability. Or even better play another animation that looks like he is shooting something. Currently I'm using a marine actor for this hero.
I know this is alot. Could I get some quick suggestions on how to accomplish some of these?
EDIT: I finally fixed the original problem . My problem now is getting the missile units model to load when using this ability.
EDIT: I fixed the 2nd problem with the model not loading by copying another missiles actor then replacing the birth event with my missile.
did you add range to your ability?
@FunkyUserName: Go
There were 2 spots that I added 7 range too. One of was on the actual ability .
New problem. The ability is firing the generic missing model model instead of the one I picked.
@KradDrol1: Go
You need to have a Projectile Unit for the launch missile effect to use as an Ammo Unit. The Projectile Unit needs to have an actor that is created when the unit is created by the launch missile effect. So make sure that the actor for the Projectile Unit is being created when the unit spawns in the actors events.
Should look like this in the actors events.
UnitBirth.YourProjectileUnit
Create
@Knallertton: Go
I believe the problem is in the actor events. Right now my missile unit does not appear to have an actor linked to it.
The actor that I created for it has.
Effect.bogus.stop
FromEffectTreeDescendant
ActionimpactPhysics
Effect.Bogus.start
FromEffectTreeDescendant
ActionimpactPhysics
Effect.SplashDamage.Start
FromEffectTreeDescendant
ActionDamage
Effect.SplashDamage.stop
FromEffectTreeDescendant
ActionDamagePhysics
Effect.Bogus.Start
At Caster
Create
Effect.Bogus.Start
At Caster
Create
Should I delete all these events and create the birth one? Is there something else that is wrong?
you are using an action actor, you need a unit actor, just copy the actor of a missile unit and replace the unit.birth part with your unit then.
fastest answer ever!
@KradDrol1: Go
Yes, create a new one and set it's actor type to be Missile to have default values for missile actors. Then add the UnitBirth event and your wanted model for it.
The actor type 'missile' gives you the events I posted above so I copied another missile units events and replaced the unit birth with my missile unit.
Unit Birth. Trickshotmissile
Create
Unit birth
AnimBracketStart
Unit death
Destroy
ActorOrphan
Destroy
This did not work. I also tried only adding the birth event and that didn't work either.
Can you just post test map?
Actually this has been solved. I literally copy and pasted another missile actor and just replaced the birth with my missile.
Now I'm trying to figure out some of the effects that I would like to add.
I need everything to automatically cast in the direction of your mouse rather than the unit walking within range of a target point.
I also need to add a small knockback ability for when an enemy is hit. I tried to add apply force but it only made the target unit move south slightly regardless of what options I picked. I've also tried using create persistent and search effects but I really have no idea which options to select or what to do.
Another problem I'm having with this ability is that it hits 2 units at once when they are grouped. I removed the area+ and made the missile 0.2 width so it must be very accurate. I would like the missile to only be able to damage one unit.
Also I would like ability range indicators when holding your mouse over the ability. But instead of a circle around your hero I would like a line to appear and show you the direction and range the ability will be used.
Also I would like my Hero to play their attack animation when using the ability. Or even better play anot her animation that looks like he is shooting something. Currently I'm using a marine actor for this hero.
I know this is alot. Could I get some quick suggestionsearch on how to accomplish some of these?
you could have had it 15 hours ago by just listening
@FunkyUserName: Go
Yep, I had it 12 hours ago thanks to your help. Just wasn't able to post till this morning.
This requires triggers.
You can increase the magnitude of force effects by repeatedly applying it with a persistent as well as increasing the pushed unit's movement speed+acceleration. Your problem with orientation is probably a simple target/caster point issue on several effects.
Limit the missile's search effect to 1 target.
Check out kerrigan's dash ability from HOTS campaign. No triggers involved.
Add the appropriate entry in the unit actor's events field. Check out any ladder spellcaster unit.