- Joined
- May 20, 2009
- Messages
- 822
No matter how small of a number I put in for the speed, it seems to not go any slower then a certain amount.
This is my code:
"0.010"
"0.025"
"0.040"
But each unit moves at the same speed...
What is the code for the "SetUnitMoveSpeed takes unit whichUnit, real newSpeed returns nothing"
In Common.j? I can't seem to find it anywhere. Maybe that'll help me figure something out.
EDIT: Also, as for my other recent thread, I have fixed the issue and I'll update it soon with my solution for future references.
This is my code:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (CloakingUnit[CloakLevelInit] has buff Cloaking ) Equal to True
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Cloak for CloakingUnit[CloakLevelInit]) Equal to 1
-
Then - Actions
- Custom script: set udg_CloakSpeedBonus[udg_CloakLevelInit] = .0010
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Cloak for CloakingUnit[CloakLevelInit]) Equal to 2
-
Then - Actions
- Custom script: set udg_CloakSpeedBonus[udg_CloakLevelInit] = .0025
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Cloak for CloakingUnit[CloakLevelInit]) Equal to 3
-
Then - Actions
- Custom script: set udg_CloakSpeedBonus[udg_CloakLevelInit] = .0040
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- Game - Display to (All players) the text: (String(CloakSpeedBonus[CloakLevelInit]))
- Unit - Set CloakingUnit[CloakLevelInit] movement speed to ((Default movement speed of CloakingUnit[CloakLevelInit]) / CloakSpeedBonus[CloakLevelInit])
"0.010"
"0.025"
"0.040"
But each unit moves at the same speed...
What is the code for the "SetUnitMoveSpeed takes unit whichUnit, real newSpeed returns nothing"
In Common.j? I can't seem to find it anywhere. Maybe that'll help me figure something out.
EDIT: Also, as for my other recent thread, I have fixed the issue and I'll update it soon with my solution for future references.