• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need help with tower to a TD

Status
Not open for further replies.

dgz345

D

dgz345

I want to make a boomerang Tower but i cant make it to work.
i can make so 1 tower shoots then go back and gets removed but i cant have more then 1 boomerang tower then.
they get stuck there and wont go back.
please help me.
(make a easy understanding (something))

EDIT: Plz fix my trigger the boomerang wont go back
  • Boomerang Tower
    • Events
      • Unit - A unit owned by Player 12 (Brown) Is attacked
    • Conditions
      • ((Attacking unit) is in (Units of type Boomerang Tower)) Equal to True
    • Actions
      • Custom script: local unit udg_Boomerang_Dummy
      • Custom script: local unit udg_Boomerang_Tower
      • Set Boomerang_Tower = (Attacking unit)
      • Set BoomerangPoint = (Position of (Attacked unit))
      • Unit - Create 1 Boomerang Dummy for (Owner of Boomerang_Tower) at (Position of Boomerang_Tower) facing Default building facing degrees
      • Set Boomerang_Dummy = (Last created unit)
      • Unit - Order Boomerang_Dummy to Move To BoomerangPoint
      • Wait until ((Current order of Boomerang_Dummy) Equal to (Order(move))), checking every 1.00 seconds
      • Wait until ((Current order of Boomerang_Dummy) Not equal to (Order(move))), checking every 0.10 seconds
      • Unit - Order Boomerang_Dummy to Move To (Position of Boomerang_Tower)
      • Wait until ((Distance between (Position of Boomerang_Dummy) and (Position of Boomerang_Tower)) Less than or equal to 100.00), checking every 0.10 seconds
      • Unit - Remove Boomerang_Dummy from the game
 
Last edited by a moderator:
Easy understanding is pretty hard, since you're talking about MUI...
MUI is something that a lot of spells need, otherwise the spell will big like in your case.

The easiest way to achieve MUI nowadays is with hashtables, I suggest you have a look at a tutorial about that :)
You just need to store everything inside that hashtable with as key the tower which is shooting the boomerang.
 
tnx going to try that
EDIT: Didnt understanded that
 
Last edited by a moderator:
Ok No double post then tnx for leting me know that. xD
but how to solve the wait problem?
the boomerang wont go back if im not using last created unit.
 
ok?
is it possible to inport "triggers" from JASS?
omg help me (dont understand a thing)
 
OMG That Was To Hard xD
help?
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top