- Joined
- Dec 3, 2012
- Messages
- 117
I'm just wondering if it's alright to use the Periodic event "When xx time has passed" like right now, every 2 seconds I have ordered all the wisps to follow their respective players and teleport to that player if the distance between them is too great.
Does this cause leaking/lagging, or is it safe to use ?
Trigger:
Does this cause leaking/lagging, or is it safe to use ?
Trigger:
-
Cart Follow
-
Events
- Time - Every 2.00 seconds of game time
- Conditions
-
Actions
- -------- Red --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KAFRARentaCartInt[1] Greater than or equal to 1
-
Then - Actions
- Set TEMPCartPoint[1] = (Position of HEROPlayerHero[1])
- Set TEMPCartPoint[2] = (Position of UNITRentaCart[1])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between TEMPCartPoint[1] and TEMPCartPoint[2]) Greater than or equal to 650.00
-
Then - Actions
- Set TEMPPoint = (Position of HEROPlayerHero[1])
- Unit - Move UNITRentaCart[1] instantly to TEMPPoint
- Custom script: call RemoveLocation(udg_TEMPPoint)
-
Else - Actions
- Unit - Order UNITRentaCart[1] to Follow HEROPlayerHero[1]
-
If - Conditions
- Custom script: call RemoveLocation(udg_TEMPCartPoint[1])
- Custom script: call RemoveLocation(udg_TEMPCartPoint[2])
- Else - Actions
-
If - Conditions
- -------- Blue --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KAFRARentaCartInt[2] Greater than or equal to 1
-
Then - Actions
- Set TEMPCartPoint[3] = (Position of HEROPlayerHero[2])
- Set TEMPCartPoint[4] = (Position of UNITRentaCart[2])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between TEMPCartPoint[3] and TEMPCartPoint[4]) Greater than or equal to 650.00
-
Then - Actions
- Set TEMPPoint = (Position of HEROPlayerHero[2])
- Unit - Move UNITRentaCart[2] instantly to TEMPPoint
- Custom script: call RemoveLocation(udg_TEMPPoint)
-
Else - Actions
- Unit - Order UNITRentaCart[2] to Follow HEROPlayerHero[2]
-
If - Conditions
- Custom script: call RemoveLocation(udg_TEMPCartPoint[3])
- Custom script: call RemoveLocation(udg_TEMPCartPoint[4])
- Else - Actions
-
If - Conditions
- -------- Teal --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KAFRARentaCartInt[3] Greater than or equal to 1
-
Then - Actions
- Set TEMPCartPoint[5] = (Position of HEROPlayerHero[3])
- Set TEMPCartPoint[6] = (Position of UNITRentaCart[3])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between TEMPCartPoint[5] and TEMPCartPoint[6]) Greater than or equal to 650.00
-
Then - Actions
- Set TEMPPoint = (Position of HEROPlayerHero[3])
- Unit - Move UNITRentaCart[3] instantly to TEMPPoint
- Custom script: call RemoveLocation(udg_TEMPPoint)
-
Else - Actions
- Unit - Order UNITRentaCart[3] to Follow HEROPlayerHero[3]
-
If - Conditions
- Custom script: call RemoveLocation(udg_TEMPCartPoint[5])
- Custom script: call RemoveLocation(udg_TEMPCartPoint[6])
- Else - Actions
-
If - Conditions
- -------- Purple --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KAFRARentaCartInt[4] Greater than or equal to 1
-
Then - Actions
- Set TEMPCartPoint[7] = (Position of HEROPlayerHero[4])
- Set TEMPCartPoint[8] = (Position of UNITRentaCart[4])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between TEMPCartPoint[7] and TEMPCartPoint[8]) Greater than or equal to 650.00
-
Then - Actions
- Set TEMPPoint = (Position of HEROPlayerHero[4])
- Unit - Move UNITRentaCart[4] instantly to TEMPPoint
- Custom script: call RemoveLocation(udg_TEMPPoint)
-
Else - Actions
- Unit - Order UNITRentaCart[4] to Follow HEROPlayerHero[4]
-
If - Conditions
- Custom script: call RemoveLocation(udg_TEMPCartPoint[7])
- Custom script: call RemoveLocation(udg_TEMPCartPoint[8])
- Else - Actions
-
If - Conditions
- -------- Yellow --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KAFRARentaCartInt[5] Greater than or equal to 1
-
Then - Actions
- Set TEMPCartPoint[9] = (Position of HEROPlayerHero[5])
- Set TEMPCartPoint[10] = (Position of UNITRentaCart[5])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between TEMPCartPoint[9] and TEMPCartPoint[10]) Greater than or equal to 650.00
-
Then - Actions
- Set TEMPPoint = (Position of HEROPlayerHero[5])
- Unit - Move UNITRentaCart[5] instantly to TEMPPoint
- Custom script: call RemoveLocation(udg_TEMPPoint)
-
Else - Actions
- Unit - Order UNITRentaCart[5] to Follow HEROPlayerHero[5]
-
If - Conditions
- Custom script: call RemoveLocation(udg_TEMPCartPoint[9])
- Custom script: call RemoveLocation(udg_TEMPCartPoint[10])
- Else - Actions
-
If - Conditions
- -------- Orange --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KAFRARentaCartInt[6] Greater than or equal to 1
-
Then - Actions
- Set TEMPCartPoint[11] = (Position of HEROPlayerHero[6])
- Set TEMPCartPoint[12] = (Position of UNITRentaCart[6])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between TEMPCartPoint[11] and TEMPCartPoint[12]) Greater than or equal to 650.00
-
Then - Actions
- Set TEMPPoint = (Position of HEROPlayerHero[6])
- Unit - Move UNITRentaCart[6] instantly to TEMPPoint
- Custom script: call RemoveLocation(udg_TEMPPoint)
-
Else - Actions
- Unit - Order UNITRentaCart[6] to Follow HEROPlayerHero[6]
-
If - Conditions
- Custom script: call RemoveLocation(udg_TEMPCartPoint[11])
- Custom script: call RemoveLocation(udg_TEMPCartPoint[12])
- Else - Actions
-
If - Conditions
-
Events