• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Animation

Status
Not open for further replies.
Level 4
Joined
May 2, 2013
Messages
107
Hi there,


Just wanted to know.. How can I let there be shown an animation on a specific unit on the map, after a timer has expired. (an animation that automaticly will fade out over the time)..

My Idea is to show a resource add on a building, every time a timer has expired..

For example how the new Squadron TD with the refinery does.. That shows a number with next to it an image of vesepene gas.. I want to have an image of minerals, vespene gas and terrazine, if possible..


someone can help me??:) would be nice :)
 
Level 7
Joined
Dec 11, 2004
Messages
237
You must send an actor message to the unit you want to animate.
To do that you can use the data editor or, more simply, the trigger editor.

For the second one you have to use the "Send Actor message" action, then for the actor use the "Unit's Actor" selector.

The actor message should be something like Send Animation


If you have issues tell me and I'll check for the correct triggers names :p
 
Last edited:
Level 4
Joined
May 2, 2013
Messages
107
I tried to do what you said, but infrotunate it gives some errors by testing..

Can you show me a screenshot or a can you send me a file how you did it'??

I would appreciate it :)

Thanks for respons!!!
 
Level 7
Joined
Dec 11, 2004
Messages
237
I attached a screen.
You can use "Animation bracket start" to start animation loops (ex. channeling)
"Animation Play" message should work for a simple animations that must play only once
 

Attachments

  • unitanimation.jpg
    unitanimation.jpg
    69.9 KB · Views: 160
Level 4
Joined
May 2, 2013
Messages
107
Yes, this is what I have:


An event

Action - Send Actor message to Unit
Specified Unit
Animation play


As I can see, you did the same..

But if i test it.. It shows error..

Those parameters of Animation play are confusion.. Dont know what is doing what..
And were can I fill in the image for the animation or text..? Cuz what he supposed to show right now with this action??
 
Level 4
Joined
May 2, 2013
Messages
107
BY the Animation play, I meant the screenshot you showed, the Actor Message.. Its confusing.. I want to animate a '+6' or something (if possible a mineral image next to it, or vespene gas image) at the geyser (unit) which is on the map when a timer expired..
 
Level 7
Joined
Dec 11, 2004
Messages
237
Oh wait you want a floating text, not a model animation :)

To do that just use the trigger
Create Text Tag

then attach it to the unit with
Attach Text Tag To Unit

and finally you can animate it giving a speed, direction and duration with
Set Velocity Of Text Tag
Set Time Of Text Tag

if you wish, text tags accept colored text or images like all texts in SC2
 
Level 4
Joined
May 2, 2013
Messages
107
Thanks.. Thanks to your help :) If you want to check the results.. Check out Refinery Wars on Arcade on SC2 HOTS..

cheers!
 
Status
Not open for further replies.
Top