HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

this is wierd, plz HELP!!!

02-13-2004, 04:47 AM#1
Archimonde_lich
yesterday i was so bored so i opened the WE. i wanted to make a ball bounce. so i took a wisp and i put a trigger.
Event:
unit is issued an order targetting a point
action:
unit set flying height to flying height of (any air unit) at (rate) distance between position of wisp and target point of issued order.
ok
now the rate was messed up.
i want to know how this rate thing worx.
by looking at the trigger u can c that when u tell the wisp to go somehwere he will be at flying height when he reaches wheree u told him to go.
but its messed up. the farther i tell the wisp to go, the faster his flying height changes and the closer i tell him to go the flying height rate is slower. its messed up plz help.

emote_confused
02-13-2004, 12:55 PM#2
Vidstige
I can agree, with the messed up part... I didn't actually manage to create your triggering (have you actually created that trigger, could you convert it to custom code and paste it please). I managed to create this trigger though.
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is issued an order targeting a point
    Conditions
    Actions
        Custom script:   call SetUnitFlyHeight(GetTriggerUnit(), 500, 20)
500 is the new height, 20 is the rate/speed to use when shifting to new height, the higher rate, the faster it will reach new height. And fly-height has no effect on units that doesn't fly...
02-13-2004, 03:10 PM#3
Archimonde_lich
no, its not that. its just that the rate is not how i want it to be.
how can i fix the rate to be according to how far the unit is told to go.
02-13-2004, 03:52 PM#4
Vidstige
I guess that you will have to do the following:

1. Decide how you want YourRate to work.
2. Figure out exactly how TheRate works.
3. Create a formula which translates from YourRate to TheRate.

Good luck!