• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Unit dies event(easy trigger)

Not open for further replies.
Level 6
May 31, 2008
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
Jan 21, 2007
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:
Not open for further replies.