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

Goblin Zeplin Not Unloading

Status
Not open for further replies.
Level 10
Joined
Jan 21, 2007
Messages
576
Ok i have a spell for one of the heroes in my map, the zeplin loads the unit but then stays in the same spot doing nothing, whats wrong?

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Level of Flare for (Casting unit)) Equal to 1
    • Then - Actions
      • Set L = ((Target point of ability being cast) offset by (-1000.00, 0.00))
      • Unit - Create 1 Battle Golem for (Owner of (Casting unit)) at L facing Default building facing degrees
      • Set FlareUnits[1] = (Last created unit)
      • Unit - Create 1 Goblin Zeppelin for (Owner of (Casting unit)) at L facing Default building facing degrees
      • Set FlareUnits[2] = (Last created unit)
      • Custom script: call RemoveLocation(udg_L)
      • Unit - Order FlareUnits[2] to Load FlareUnits[1]
      • Set L = (Target point of ability being cast)
      • Unit - Order FlareUnits[2] to Unload All At L
      • Custom script: call RemoveLocation(udg_L)
    • Else - Actions
 
Level 3
Joined
May 4, 2007
Messages
66
Try using diferent location variables cuz sometimes, at least for me, bugged when i would remove a location and then i used the same variable for another location in the same trigger.
 
Level 10
Joined
Jan 21, 2007
Messages
576
Tried the trigger in newmap gen, in the map when playing it would say double free location, so i used 2 point variables and it works. Thanks for the suggestions.
 
Status
Not open for further replies.
Top