Warcraft III resources & community, 2003–2006 · archived

Channel Animations

4 posts
#1

Channel Animations

How exactly do you set the animations of the channel spell? I need my villager to perform the stand work animation for 3 seconds. At the moment he just stands there for 3 seconds.
Tx
#2
specify it in the art - animation field of the ability in OE. And add the word "looping" as a secondary string.

if it doesn't work it has something to do with the unit's animations, just use animation index calls to fix that, piece of cake.
#3
OMG it achually worked!

Custom script: call SetUnitAnimationByIndex(udg_Farmer,5)


But there is a problem :o I use the event:
Unit - A unit Uses an item
. The spell that the item uses is based on channel, and the follow through time is 3 seconds. This means that the even is only triggered at the end of the 3 seconds. Plus, the whole reason I based the spell on channel was to make the unit paused for that space of time so you couldnt re-order them. How do you trigger the animations at the right time? Should I just make it entirely trigger based using the pause trigger too, and having the item as just a blank item which triggers it? I only want this to be triggered at certain places:
Environment - Change terrain type at (Position of (Triggering unit)) to Village - Crops using variation -1 in an area 1 and shape Circle
Will this work? Is there a better way, or is this it?
Thanks for the help anyways. :P
#4
I would base the ability of channel but trigger the pause and everything. Like this:

(only actions, gui script)

Unit - Pause (Triggering Unit)
Game - Wait (3) seconds
Unit - Unpause (Triggering Unit)
set someLocationVariable = Position of (TriggeringUnit)
Environment - Change terrain type at (someLocationVariable)) to Village - Crops using variation -1 in an area 1 and shape Circle
custom script: call RemoveLocation(udg_someLocationVariable)