• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger lagg?

Status
Not open for further replies.
Level 5
Joined
Jan 26, 2008
Messages
118
In my latest map people are complaining about that they cant select their units.
And it has happened after I added some advanced but really needed triggers.
So is there somehow I can fix it without removing the triggers? Or is it something else which is the problem?

This is the tigger
(and its x5 (for each race)

suicide Dwarf
  • Events
    • Unit - A unit owned by Player 1 (Red) Begins casting an ability
    • Unit - A unit owned by Player 2 (Blue) Begins casting an ability
    • Unit - A unit owned by Player 3 (Teal) Begins casting an ability
    • Unit - A unit owned by Player 4 (Purple) Begins casting an ability
    • Unit - A unit owned by Player 5 (Yellow) Begins casting an ability
    • Unit - A unit owned by Player 6 (Orange) Begins casting an ability
    • Unit - A unit owned by Player 7 (Green) Begins casting an ability
    • Unit - A unit owned by Player 8 (Pink) Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Suicide (Neutral Hostile)
  • Actions
    • Unit Group - Pick every unit in (Units currently selected by (Owner of (Casting unit))) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Unit-type of (Picked unit)) Equal to Dwarf Worker
          • Then - Actions
            • Unit - Kill (Picked unit)
          • Else - Actions
 
Last edited by a moderator:

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
It leaks a unit group.
[TRIGGER=Use the following script in order to fix it (use it before picking every unit)]Custom script: set bj_wantDestroyGroup = true[/TRIGGER]


EDIT: Slams usually lag the first time they are used. Is the lag persistent?
 
Level 5
Joined
Jan 26, 2008
Messages
118
It leaks a unit group.
[TRIGGER=Use the following script in order to fix it (use it before picking every unit)]Custom script: set bj_wantDestroyGroup = true[/TRIGGER]


EDIT: Slams usually lag the first time they are used. Is the lag persistent?

Ill try that script out tomorrow

yes it randomly appers for all the players through the game. It usually helps to select another unit and than select the unit you wanted to select
 
Last edited:
Status
Not open for further replies.
Top