• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Channel Animations

Status
Not open for further replies.

9398hrb

9

9398hrb

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
 
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.
 
OMG it achually worked!

JASS:
Custom script: call SetUnitAnimationByIndex(udg_Farmer,5)

But there is a problem :o I use the event:
JASS:
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:
JASS:
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
 
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)
 
Status
Not open for further replies.
Back
Top