• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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,013
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