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!
Ok So I made a map And Just need a trigger to have a Control point that Is brought down to 0 health and then becomes the player's that killed it, and generates (Number of gold) per 60 Secs.
So heres a simple income that gives 10 gold per footman every 60 seconds.
Income
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Set AllPlayers = (All players)
Player Group - Pick every player in AllPlayers and do (Actions)
Loop - Actions
Player - Add ((Number of living Footman units owned by (Picked player)) x 10) to (Picked player) Current gold
Custom script: call DestroyForce (udg_AllPlayers)
If you want to make a unit change ownership, you can try this:
Change ownership
Events
Unit - A unit Dies
Conditions
Actions
Set TempLoc = (Position of (Dying unit))
Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at TempLoc facing Default building facing degrees
Custom script: call RemoveLocation (udg_TempLoc)
However a unit who is killed actually dies with this, and a new unit of the same type is simply created for the killer, so you will still see the death animation of a "conquered" unit.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.