I've been lurking around the forums for a bit checking out tutorials to see if they helped me at all with my problem and none of them seemed to do the trick so I figured I'd ask for help here.
I recently created my own Marine unit, gave it energy, and then replaced its standard attack with an ability that consumes five energy per shot but is suppose to be identical to its regular attack. The ability has all the effects and animations of the marines regular attack, when the ability executes it makes the sound and a little plume of light appears at the tip of the gun but the marine refuses to do the attack animation. It just stands stiff in its idle animation.
I'm about to give up on these changes soon because I realize even if I managed to make it play the animation I wouldn't be able to get it so it functions completely like a normal attack in that you could press a and then click somewhere on the map to attack move, but I'd like to at least know why it won't play the animation when everything seems to be in order.
Any and all help would be greatly appreciated. Thanks.
Thank you very much! That solved the problem. I still have to mess around with it a bit to get it just right but the animation is now playing, thank you.
I hate to bother you further but do you have any idea how I might make it so I could press the hotkey button and then right click somewhere and the unit would automatically cast the ability on enemies?
Thanks for your time and your reply.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey there guys,
I've been lurking around the forums for a bit checking out tutorials to see if they helped me at all with my problem and none of them seemed to do the trick so I figured I'd ask for help here.
I recently created my own Marine unit, gave it energy, and then replaced its standard attack with an ability that consumes five energy per shot but is suppose to be identical to its regular attack. The ability has all the effects and animations of the marines regular attack, when the ability executes it makes the sound and a little plume of light appears at the tip of the gun but the marine refuses to do the attack animation. It just stands stiff in its idle animation.
I'm about to give up on these changes soon because I realize even if I managed to make it play the animation I wouldn't be able to get it so it functions completely like a normal attack in that you could press a and then click somewhere on the map to attack move, but I'd like to at least know why it won't play the animation when everything seems to be in order.
Any and all help would be greatly appreciated. Thanks.
@IcarusPrime: Go
1.Go in to your data editor
2. Look up and select your custom unit.
3. Click on the main actor of your unit
4.Click the event tab.
5.Add New Event
Msg type = Ability
Source Name = <Your Ability Here>
Sub Name = When you want the attack animation to play (If you dont know try Source Channel Start)
6, Action
Msg Type:=Animation Play
Name:=Attack
Properties:=Attack
Blend in / Out # of seconds to play animation - = Before + = After (If you aren't sure leave as default
Everything I didn't mention leave default.
@ajilejay: Go
Thank you very much! That solved the problem. I still have to mess around with it a bit to get it just right but the animation is now playing, thank you.
I hate to bother you further but do you have any idea how I might make it so I could press the hotkey button and then right click somewhere and the unit would automatically cast the ability on enemies?
Thanks for your time and your reply.