Selecting a unit event

Weyird

Member
Reaction score
5
When a certain unit is selected, I need ownership of that unit to be transferred to the selecting player. Unfortunately, under "unit type" condition I don't find a "event response - selected unit" option.

Wow I'm being prolific tonight.. My 3rd (4th?) thread...
 

Wratox1

Member
Reaction score
22
triggering unit is the unit you want;)

Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
    • Actions
      • Unit - Change ownership of (Triggering unit) to (Triggering player) and Change color
 

Carnerox

The one and only.
Reaction score
84
triggering unit is the unit you want;)

Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
    • Actions
      • Unit - Change ownership of (Triggering unit) to (Owner of Triggering unit) and Change color
Actually its owner of triggering unit. ^^
 

Weyird

Member
Reaction score
5
Oh wow. "Duh" on an amazingly simple level. Though it is remarkable that the event consists of both a player and a unit, letting both be referred to as "triggering unit/player". In other words, it doesn't need to be "Owner of triggering unit".

Thanks both :thup:
 

SaintMorose

New Member
Reaction score
26
You didnt want this?

Event - Unit enters playable map area

Conditions - Type of Unit that will be selected is triggering unit

Trigger - Add to (You Trigger) the event (Unit - TriggingUnit Is selected)
 

Weyird

Member
Reaction score
5
Haha, no morose. What I've got now is perfect.
Anyway, its a building so its not likely to be entering any regions in the near future :p
 
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