HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Changing flying height

11-05-2003, 06:32 PM#1
35263526
I am trying to make a flying unit rise from the ground over 2 seconds.

I used the Animation - Change Unit's Flying Height trigger, and set it to change to 400 with a rate of 100, but the unit's height stays as it is. What am I doing wrong?
11-05-2003, 06:36 PM#2
Shark
have u changed the units movement height to 400 ? maybe that will help :) (in the object manager)
11-05-2003, 06:37 PM#3
FF_Behemoth
The unit must have Flying movement type. (Hover might work, but I'm not sure)
11-05-2003, 06:39 PM#4
35263526
I set the unit's movement height to -200 in the object editor (its a summonable units and I want it to be raised from the ground when summoned, not to just appear.

And as I said in my first post, it is a flying unit.
11-05-2003, 06:43 PM#5
FF_Behemoth
try with a rate of 5000, if that works, then gradually go down in #'s till you find the correct rate..
11-05-2003, 07:32 PM#6
Biflspud
I've not been able to do anything less than 200 successfully, but that works just fine - units move gradually enough at that rate of change.
11-05-2003, 07:59 PM#7
35263526
This is my exact trigger:

EVENTS
A unit begins casting an ability

CONDITIONS
Ability being cast equal to Orb of Light

ACTIONS
Custom Script: local unit udg_OrbOfLight
Create a Orb of Light at location of casting unit facing facing angle of casting unit
Set OrbOfLight = Last Created Unit
Change flying height of OrbOfLight to 400 by 200
Wait 10 seconds
Kill OrbOfLight

OrbOfLight is a global unit variable.
The trigger works, except for the fact that OrbOfLight's flying height doesn't change. I though it might be caused by WE compiling the trigger so that Chane flying height is in a different function than the action that declares the local variables, but I duplicated the variable and converted it to custom text, and they are both in the same function. So why?
11-05-2003, 09:19 PM#8
preator
i think theres a trigger in which u do that without conditions try that out
11-05-2003, 09:58 PM#9
Biflspud
Animation - Change PlayerHero[(Player number of (Triggering player))] flying height to ((Current flying height of PlayerHero[(Player number of (Triggering player))]) + 100.00) at 200.00

Alright, exactly how I have in in my map. There's nothing wrong with changing flying height at that rate; works just fine for me. Are you sure that the Orb object's animation - flying height is set to something other than 400? Try setting it to something crazy, like 1000.
11-05-2003, 10:02 PM#10
Dyne
A unit can't have a flying height of below 0. And I think that having a flying height of 0 is also problematic. Make it 1.
11-05-2003, 10:03 PM#11
35263526
The Orb uses the Troll Witchdoctor projectile model. I can't see why it doesn't work.