- Joined
- Jan 9, 2005
- Messages
- 2,124
I have a system that adjusts the flying height of a unit gradually since I can't use the normal way by just setting height to X and rate to Y for various reasons. The problem I have is that is doesn't appear to change the unit's selection circle along with the height whenever the height increases. Any ideas?
-
Height Adjustment
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in Height_group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Set ID = (Custom value of (Picked unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Height_goingUp[ID] Equal to True
-
-
Then - Actions
-
Set Height_adjustment = ((Current flying height of (Picked unit)) + (Height_speed[ID] / 33.00))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Height_adjustment Greater than or equal to Height_newHeight[ID]
-
-
Then - Actions
-
Set Height_adjustment = Height_newHeight[ID]
-
Animation - Change (Picked unit) flying height to Height_adjustment at 0.00
-
Unit Group - Remove (Picked unit) from Height_group
-
-
Else - Actions
-
Animation - Change (Picked unit) flying height to Height_adjustment at 0.00
-
-
-
-
Else - Actions
-
Set Height_adjustment = ((Current flying height of (Picked unit)) - (Height_speed[ID] / 33.00))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Height_adjustment Less than or equal to Height_newHeight[ID]
-
-
Then - Actions
-
Set Height_adjustment = Height_newHeight[ID]
-
Animation - Change (Picked unit) flying height to Height_adjustment at 0.00
-
Unit Group - Remove (Picked unit) from Height_group
-
-
Else - Actions
-
Animation - Change (Picked unit) flying height to Height_adjustment at 0.00
-
-
-
-
-
-
Else - Actions
-
Unit Group - Remove (Picked unit) from Height_group
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Height_group is empty) Equal to True
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
-
-