Okay, So I made this sliding trigger for a map I am making, But it seems to have a bug and I can't seem to figure out why. I decided to come to you all for help .
When I'm alone in the game as Red, I slide normally at a normal speed and fine. But if I have more players in the game, Red moves very slow and the other players move very fast.
P.S. if it has any leaks could you notify me of them? Thanks!
When I'm alone in the game as Red, I slide normally at a normal speed and fine. But if I have more players in the game, Red moves very slow and the other players move very fast.
-
Init
-
Events
- Map initialization
- Conditions
-
Actions
- Countdown Timer - Start TerrainTimer as a Repeating timer that will expire in 0.05 seconds
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
- If (((Player((Integer A))) slot status) Equal to Is playing) then do (Unit - Create 1 Demon Hunter for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees) else do (Do nothing)
- Set HeroArray[(Integer A)] = (Last created unit)
- Selection - Select HeroArray[(Integer A)] for (Owner of HeroArray[(Integer A)])
-
Loop - Actions
-
Events
-
OnIceTerrain
-
Events
- Time - TerrainTimer expires
- Conditions
-
Actions
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
- Set Facing = (Facing of HeroArray[(Integer A)])
- Set TempPoint = (Position of HeroArray[(Integer A)])
- If ((Terrain type at TempPoint) Equal to Northrend - Ice) then do (Unit - Move HeroArray[(Integer A)] instantly to (TempPoint offset by 2.50 towards Facing degrees)) else do (Do nothing)
- Custom script: call RemoveLocation(udg_TempPoint)
-
Loop - Actions
-
For each (Integer A) from 1 to 11, do (Actions)
-
Events
-
OnIceTurn
-
Events
- Unit - A unit Is issued an order targeting a point
-
Conditions
- (Unit-type of (Ordered unit)) Equal to Demon Hunter
-
Actions
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
- Set TempPoint = (Target point of issued order)
- Set TempPoint2 = (Position of HeroArray[(Integer A)])
- If ((Terrain type at TempPoint2) Equal to Northrend - Ice) then do (Unit - Make HeroArray[(Integer A)] face TempPoint over 0.00 seconds) else do (Do nothing)
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint2)
-
Loop - Actions
-
For each (Integer A) from 1 to 11, do (Actions)
-
Events
P.S. if it has any leaks could you notify me of them? Thanks!