HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

setting to swim anim while on land

08-02-2009, 09:29 AM#1
fX_
i wanna make a Basilisk desert boss that can burrow into the sand and thresh around.

how do i set a unit's animations (namely, naga myrmidon's) to 'swim' while on land.
"Animation - required animation names : swim" doesnt work;
Collapse JASS:
SetUnitAnimationProperties(u, "swim", true)
doesnt work.
???????

p.s. it can be done i've seen it on Desert of Exile.
08-02-2009, 08:40 PM#2
Switch33
Make a new unit for the boss and in the object editor add animation tag "Swim" for all the unit object animation fields on it. It should pretty much play all the swim animations then. Check the demon hunter for examplage.
08-03-2009, 06:20 AM#3
fX_
Quote:
"Animation - required animation names : swim" doesnt work;

how then?
08-03-2009, 06:24 AM#4
Sophismata
Don't update the bones setting, swim animations don't morph the unit and require the original attachment names.

The actual morph of the Naga is their submerge ability.
08-03-2009, 06:36 AM#5
Rising_Dusk
The native you want to use is AddUnitAnimationProperties(MyUnit, "swim", true). And yes, it works, trust me.
08-03-2009, 07:00 AM#6
Sophismata
Forgot to mention - Amphibious movement will override the Animation Properties value (when it comes to the "swim" string). If you're still having problems, you must set the unit to 'Foot' movement type.
08-03-2009, 07:36 AM#7
fX_
whether setting animation properties to 'swim' by object editor or by triggers, it seems that for this to work the unit's movement type must be amphibious as sophismata said.

case closed c: c:
08-12-2009, 06:43 PM#8
prophetboy
rising_dusk
can this animation be done without JASS?
08-12-2009, 07:22 PM#9
Linaze
Trigger:
Animation - Add the Swim animation tag to YourUnit
08-12-2009, 07:54 PM#10
prophetboy
I added the animation tag and it still doesn't work

I'll try some variations later

thanks