- Joined
- Nov 4, 2017
- Messages
- 8
As the title says, how do i rotate a unit so fast. somehow if i add more speed to the angle it does not look good.
Here's my Triggers:
Here's my Triggers:
-
Raid Start
-

Events
-


Player - Player 1 (Red) skips a cinematic sequence
-
-

Conditions
-

Actions
-


For each (Integer A) from 1 to 2, do (Actions)
-



Loop - Actions
-




Set RAID_key = (Custom value of HERO_active_unit[(Integer A)])
-




Set RAID_unit[RAID_key] = HERO_active_unit[(Integer A)]
-




Set GTS_TimeOut = 0.03
-




Set GTS_Trigger = Raid Loop <gen>
-




Trigger - Run GTS Main <gen> (checking conditions)
-




Hashtable - Save Handle OfRAID_unit[RAID_key] as 0 of GTS_CustomValue in GTS_Hashtable
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Random integer number between 1 and 2) Equal to 1
-
-





Then - Actions
-






Hashtable - Save -120.00 as 1 of GTS_CustomValue in GTS_Hashtable
-
-





Else - Actions
-






Hashtable - Save 120.00 as 1 of GTS_CustomValue in GTS_Hashtable
-
-
-
-
-
-
-
Raid Loop
-

Events
-

Conditions
-

Actions
-


Set tempunit = (Load 0 of GTS_CustomValue in GTS_Hashtable)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




GTS_ExecutionCounter Greater than or equal to 100
-
-



Then - Actions
-




Hashtable - Clear all child hashtables of child (Key (Load 0 of GTS_CustomValue in GTS_Hashtable)) in (Last created hashtable)
-




Set GTS_DestroyTimer = True
-
-



Else - Actions
-




Set temppoint[0] = (Position of tempunit)
-




Unit - Move tempunit instantly to temppoint[0], facing ((Facing of tempunit) + (Load 1 of GTS_CustomValue from GTS_Hashtable)) degrees
-




Custom script: call RemoveLocation(udg_temppoint[0])
-
-
-
-
