Need easy help with this trigger

KvickaN

TH.net Regular
Reaction score
24
Basicly, I want "Arrows" to be heatseeking when you come to close to them (making the arrow go your direction)

It is a arrow dodging game and it has been such a long time since I made maps, just point me in the right direction! (I don't know how to change the "No unit" to the arrow unit)

Code:
Heat seeking
    Events
        Unit - A unit comes within 256.00 of No unit (The arrow)
    Conditions
        (Unit-type of (Triggering unit)) Equal to The Arrow Dodger
    Actions
        Unit - Make No unit (The arrow) face (Triggering unit) over 0.00 seconds

Would this work btw?

Thanks.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
if that unit, the arrow, is not homing, then it will work. But gtting the unit part is hard. If u can get an event whn the arrow spawns, like time elasped is 30 seconds, then do a trig like
event - Time elasped
condition
Action -
Set variable = last created unit. And replace the unit in the trigger u made with tht variable.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
First tell me is that arrow a unit or a missile or a spell. And tell me when that arrow is spawned.(a unit casts it?/ You created it manually?/A normal attack of a Hero?)
 

Beetlebomb

New Member
Reaction score
43
Just by look at the trigger, KvickaN, it should work. Although, that is for specific units only. If you want to make this work for all arrows then you'll need to create a new trigger.

You could always just assign a variable to each arrow and run an integer Loop index action to check if an arrow dodger is nearby it.

If you need help with that let me know. ^^

Good luck!
 

Beetlebomb

New Member
Reaction score
43
Ok, I manged to fix it. Hope it's what you wanted. I went ahead and made a couple of minute changes to the map to clear up some things.

You have some MAJOR leakage going on on your map though. Hopefully you dont intend for this map to be played for very long because if you do it will begin to lag excessively.

I'd like to help you with the rest, and surprise you with the non-leaked version, but I already spent over an hour doing the changes I did.

Enjoy:
 

KvickaN

TH.net Regular
Reaction score
24
Ok, I manged to fix it. Hope it's what you wanted. I went ahead and made a couple of minute changes to the map to clear up some things.

You have some MAJOR leakage going on on your map though. Hopefully you dont intend for this map to be played for very long because if you do it will begin to lag excessively.

I'd like to help you with the rest, and surprise you with the non-leaked version, but I already spent over an hour doing the changes I did.

Enjoy:

Oh man, you don't know how gratefull I am! Thank you sooo much! +rep

oh and I will add you to he map and so on and ofcourse I will contact you during the time I make this map! :)) Thanks again omg!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top