• 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.

What is wrong with this trigger ?

Status
Not open for further replies.
Level 15
Joined
Feb 9, 2006
Messages
1,598
Look at this trigger:

  • Cargo Sorter Work
    • Events
      • Unit - A unit enters Rect 293 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Triggering unit)) Equal to (Owner of Job 0240 <gen>)
        • Then - Actions
          • Unit - Create 1 Cargo Sorter (Male) for (Owner of (Triggering unit)) at (Center of Rect 295 <gen>) facing Default building facing (270.0) degrees
          • Unit - Move (Triggering unit) instantly to (Center of Rect 285 <gen>)
          • Wait 2.00 game-time seconds
          • Unit - Hide (Triggering unit)
        • Else - Actions
          • Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffff0000Emplyes o...
          • Unit - Move (Triggering unit) instantly to (Center of Rect 284 <gen>)
Now, whenever a unit enters that region, the game crashes..Why ?
 
Level 3
Joined
May 28, 2005
Messages
47
I think it might have to do with the wait. Something must be triggered during this that is interferred because the wait causes the stuff after to be delayed. idk. but in my experiences wait's just cause crashes.

EDIT// does it happen EXACTLY when the unit enters. or does it pause, and then crash. where in the trigger does it run to before it crashes?
 
Level 13
Joined
Jun 22, 2004
Messages
783
Just to be safe, make your first action

Trigger - Turn of (this trigger)

That will atleast prevent the trigger from being runned at again. try that and see if that solves your problem, turn it on after you are done with all the actions ;)
 
Status
Not open for further replies.
Top