Unit-Type comes within range of Unit-Type

Agent HUNK

New Member
Reaction score
0
Well, I need help again (I'm learning from what you guys are teaching me!)

I've been making an AoS and I want to implement a... special battle so to say.

I've always found it wierd how in some AoS games, when two heroes that actually knew each other and were on opposite teams would beat each other senseless without a word.

I use the Tavern selection method and as such there are no "specific" units. How can I make it so that the trigger will go off if a unit-type comes within range of another unit-type, as variables didn't seem to do a thing.
 

Diamondeye

New Member
Reaction score
10
You want to use something like this:

Event: A unit enters the Line of Sight of a unit

Condition:
Entering unit is of unit-type (Hero 1)
Matching (?) unit is of unit-type (hero 2)

Actions:
Display to all players the message: (text)
or
create floating text over entering unit (text)
add a xxx second generic expiration timer to (last created floating text).

... Do I make any sense?
 

Agent HUNK

New Member
Reaction score
0
Yep, perfect sense.

Thanks again, DiamondEye. :thup:

Hmmm. Upon looking at the triggers, it appears the "Enter line of sight" doesn't seem to exist...
 

Diamondeye

New Member
Reaction score
10
No problem Agent_HUNK; let me know if it works (and if Matching Unit was the right function to use). :D
 

Agent HUNK

New Member
Reaction score
0
I don't think it did. Enter Line of Sight doesn't seem to exist.

Either that or it's not in unit triggers. =/
 

Diamondeye

New Member
Reaction score
10
Try Unit Enters Region

And see if you can set the Region to the Line of Sight of another unit.

Or just try to see if you can find a Unit comes within range of Unit event.

Man, this would be a lot easier if I was on a PC with WE.
 

Agent HUNK

New Member
Reaction score
0
Try Unit Enters Region

And see if you can set the Region to the Line of Sight of another unit.

Or just try to see if you can find a Unit comes within range of Unit event.

Man, this would be a lot easier if I was on a PC with WE.


Nope, doesn't appear to exist.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,494
There is a "a unit acquires a target" event.
It's not generic though.

But, that can be helped with some other trigger:

Event:
- A unit enters (Playable map)
Conditions:
- ((Triggering unit) is a Hero) equal to true
Actions:
- Trigger - Add to <next trigger> the event: (Triggering unit) acquires a target


Event:
Conditions:
- ((Targeted unit) is a Hero) equal to true
Actions:
... and do something with "triggering unit" and "targeted unit".
 
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