• 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.

[Trigger] Unit dies event(easy trigger)

Status
Not open for further replies.
Level 6
Joined
May 31, 2008
Messages
218
Need help with this trigger:
  • Untitled Trigger 003 Copy
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to (==) Gold Income
    • Actions
      • Set Gold_income_point = (Position of (Dying unit))
      • Unit - Create 1 Gold Income for Player 1 (Red) at Gold_income_point facing Default building facing (270.0) degrees
      • Custom script: call RemoveLocation (udg_Gold_income_point)
The problem is where i want a new unit created, how to make it so that the team that killed the first units gets the gold income thingy. It's shouldn't be red that gets the unit all the time.

If you know a better way for this trigger just tell me.
 
Level 17
Joined
Jan 21, 2007
Messages
2,014
Feels rather stupid now, but i realised that the option: owner of killing unit. existed.

The trigger was really easy apparently, but it became hard since i didn't look enugh :(

I'm just happy i could help.

And about the being stupid part, i think most of the people on the hive, definetly including me, have made really obvious and stupid mistakes :smile:
 
Status
Not open for further replies.
Top