• 🏆 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!

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