Code help!

P

panhandler

Guest
Ok i cant figure out why my units wont move :banghead: ill paste all the related code.. tell me whats worng plz!!

Attackers
Events
Unit - A unit enters spawn <gen>
Conditions
Actions
Unit Group - Add (Entering unit) to Attackers


and


Attack
Events
Time - Every 4.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Attackers and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Move To (Center of Gold Mine 1 <gen>)
 

DM Cross

You want to see a magic trick?
Reaction score
567
You've gotta be kidding me!

...Let me get this straight...You REPOSTED AFTER 12 MINUTES?! What's wrong with you? What are we, machines? Are we clowns?! DO WE LOOK FUNNY?! ARE WE HERE TO AMUSE- ... Wait, wrong movie...ANYWAY! Calm down, little man! People aren't even always ON the forums, so don't expect to get an answer in under 1 hour. If you do, hey, awesome! :D If you don't? DEAL WITH IT! Hey, I've had problems that haven't been fixed for 3-4 days, dude, so if I can deal with that, you can deal with a little longer then 12 damn minutes...

CHILL! PATIENCE IS A VIRTUE! Jees, what do they teach kids these days?!
 
P

panhandler

Guest
Sorry i had another post and no one helped me there ether just kinda frustrated ):
 

NoxMortus

All Along the Watchtower
Reaction score
104
couldnt u just use 1 trigger :


Attackers
Events
Time - Every 4.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (spawn <gen>)) and do (Actions)
Loop - Actions
Unit - Order (picked unit) to Move To (Center of Gold Mine 1 <gen>)
 
P

panhandler

Guest
ok ill try it but i dont know why but its not working before i think ti has to do with something with adding my guys to attackers (edit) Wait no i need 2 becuase one to add the guys to attackers and one to tell them to attack
 

SilverHawk

General Iroh - Dragon of the West
Reaction score
89
If these are trigger-spawned units, could you also post the trigger that spawns them? I think I know what might be wrong.
 
P

panhandler

Guest
Ok i figured it out its because i wasnt getting the units into the unit group correctly(still dont know how)
 
S

Senkin

Guest
Ok, I think I know how to fix it. Try making this trigger as well withoriginal idea or Nox's idea.

MoveallEnemies
Events
Unit - A unit owned by Player 12 (Brown) Is issued an order with no target
Conditions
Actions
Unit - Order (Triggering unit) to Move To (Center of Attack Pooint <gen>)

PS the player brown can be any player color that is the creeps that move to the center belong to.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top