[Trigger] Movement Trigger doesn't work properly

Status
Not open for further replies.

Artanis_

A

Artanis_

  • Spawning
    • Ereignisse
      • Zeit - Every 30.00 seconds of game time
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Ogre (Boss) 0089 <gen> is alive) Gleich True
        • 'THEN'-Aktionen
          • Set TempPoint = (Center of Ogre Spawn <gen>)
          • Einheit - Create 1 Ogre-Warrior (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Create 1 Ogre-Mage (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Create 1 Ogre-Lord (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Custom script: call RemoveLocation( udg_TempPoint )
        • 'ELSE'-Aktionen
  • Movement
    • Ereignisse
      • Einheit - A unit enters Ogre Spawn <gen>
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Owner of (Triggering unit)) Gleich Neutral feindlich
        • 'THEN'-Aktionen
          • Set TempMovementPoint = (Center of Middle <gen>)
          • Einheit - Order (Triggering unit) to Angreifen/Bewegen nach TempMovementPoint
          • Custom script: call RemoveLocation( udg_TempMovementPoint )
        • 'ELSE'-Aktionen
They go to the half of the way to "Middle" and then they turn back.
Only when they enter "Ogre Spawn" again they go to "Middle".
Why?
 
I don't know why it doesn't work, but either way I'd do this in 1 trigger:
  • Spawning
    • Ereignisse
      • Zeit - Every 30.00 seconds of game time
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Ogre (Boss) 0089 <gen> is alive) Gleich True
        • 'THEN'-Aktionen
          • Set TempPoint = (Center of Ogre Spawn <gen>)
          • Einheit - Create 1 Ogre-Warrior (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Order (Last Created unit) to Angreifen/Bewegen nach center of Middle
          • Einheit - Create 1 Ogre-Mage (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Order (Last Created unit) to Angreifen/Bewegen nach center of Middle
          • Einheit - Create 1 Ogre-Lord (Level 1) for Neutral feindlich at TempPoint facing 250.00 degrees
          • Einheit - Order (Last Created unit) to Angreifen/Bewegen nach center of Middle
          • Custom script: call RemoveLocation( udg_TempPoint )
        • 'ELSE'-Aktionen
 
Status
Not open for further replies.
Back
Top