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

Spawn-trigger Help!

Status
Not open for further replies.
Okay guys. Im making a small minigame for my map. The trigger below is the spawning trigger. Units should spawn at Trigger6, move to a random point in Trigger9 and then move down and die. But my problem is that they doesnt. They spawn at Trigger6 and then it seems like they are trying to move to center of playable map or just something random, and all of them does. They all move the same way without the trigger affacts them that much. This is my trigger, and i hope you have a solution.
  • Spawning
    • Events
      • Time - Every (Random real number between 3.00 and 3.50) seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Spider (Mini game) for Player 2 (Blue) at (Center of Trigger6 <gen>) facing 270.00 degrees
      • Set Spawnie_Mini = (Last created unit)
      • Set Pointing_Minii = (Random point in Trigger9 <gen>)
      • Unit - Order Spawnie_Mini to Move To Pointing_Minii
      • Wait 0.50 seconds
      • Set Point_Mini = (Point_Mini offset by 700.00 towards 270.00 degrees)
      • Unit - Order Spawnie_Mini to Move To Point_Mini
      • Custom script: call RemoveLocation(udg_Point_Mini)
      • Custom script: call RemoveLocation(udg_Pointing_Minii)
 

Attachments

  • IllustrationPic.png
    IllustrationPic.png
    34.3 KB · Views: 85
Last edited:
1. I think you'd better remove Pointing_Minii right after you've used it. I don't know but, maybe, the wait could cause some problems with the leak removal...

2. Have you set Point_Mini before this trigger run? Because, if you haven't, when the trigger runs the first time, Point_Mini will be null and I guess the Polar Offset will return something near the map center...

That's what I can say for now.
 
1. I think you'd better remove Pointing_Minii right after you've used it. I don't know but, maybe, the wait could cause some problems with the leak removal...

2. Have you set Point_Mini before this trigger run? Because, if you haven't, when the trigger runs the first time, Point_Mini will be null and I guess the Polar Offset will return something near the map center...

That's what I can say for now.

Didnt help, but u made me find the problem!:xxd:
Take a look at the Point_Mini Variable.
Anyways, will give you +rep and thanks for ur time.
 
Status
Not open for further replies.
Top