HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Wait Action problem! plz help me

05-09-2007, 10:44 PM#1
Euroset
Hello!
I use this trigger

Trigger:
Actions
Custom script: local unit air
Custom script: local unit land
Custom script: local integer a
Custom script: set air = GetSpellAbilityUnit()
Custom script: set land = GetSpellTargetUnit()
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Harkonen MCV
Collapse Then - Actions
Custom script: set a = 1
Custom script: loop
Custom script: exitwhen a > 20
Custom script: set udg_a = a
Custom script: set udg_air = air
Custom script: set udg_land = land
Unit - Move air instantly to ((Position of land) offset by (((Distance between (Position of air) and (Position of land)) x 0.90) - 1.00) towards (Angle from (Position of land) to (Position of air)) degrees), facing ((Facing of land) + (((Facing of air) - (Facing of land)) x 0.80)) degrees
Animation - Change air flying height to (130.00 + (((Default flying height of air) - 130.00) / (Real(a)))) at 0.00
[b][size="5"]Wait 0.05 seconds[/size][/b]
Custom script: set a = a + 1
Custom script: endloop
Special Effect - Create a special effect attached to the head of land using war3mapImported\Imperial Shuttle2.mdx
Else - Actions


this actions will work if specified ability will casts.
This action must be ended for 1 second (0.05 wait X 20 steps), BUT real time 4 seconds at least! Game speed is fastest, but what happens? how i can make this wait command work correctly? Actually it waits 0.3 seconds at least.
05-10-2007, 12:18 AM#2
Vexorian
You can't fix that, this is the reason we are forced to use timers.