• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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