• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Trigger lag

Status
Not open for further replies.
Level 2
Joined
Dec 24, 2013
Messages
8
Why does this trigger makes my map to lag when the unit enters the map ? :s

  • Auto harv
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Devotion Aura) Equal to True
            • Then - Actions
              • Unit - Order (Entering unit) to Harvest Nearby Lumber
            • Else - Actions
  • SB
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Disable Spell Book for (Picked player)
 
Level 2
Joined
Dec 24, 2013
Messages
8
  • Auto harv
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Devotion Aura) Equal to True
            • Then - Actions
              • Unit - Order (Entering unit) to Harvest Nearby Lumber
            • Else - Actions
still get the lag :s but then another ideea came to me , duno why i didnt saw it

  • Auto harv
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Unit - Order (Entering unit) to Harvest Nearby Lumber
and it works quite well, no lags, and if unit has no harvest ability, it stops ^^ the effect i wanted is still the same, ty solved :D
 
Level 2
Joined
Dec 24, 2013
Messages
8
it is for a vampirism type of map, so all units will be trained, wont pre-place ^^
 
Status
Not open for further replies.
Top