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

Picking the hero from the Player Group

Status
Not open for further replies.
Level 5
Joined
Feb 27, 2009
Messages
115
Here is my problem:

When the game ends, I want the hero with the highest score to be plucked and transported to their pedestal.

How do I do this?

The way how I am going at it is to create a Player Group based on the player on top in the leaderboard. Then I move all the player's units on to the pedestal.

I do not know how to pick the single hero from the group. So while the hero gets transported correctly, any mercenaries get put on the pedestal as do spawns, as do spawned buildings. It is a mess!

Anyone know how to pluck the hero from a player group of units? Or does anyone have an idea of how to trigger the winning hero to be placed on the pedestal in some other way?
 
Level 3
Joined
Feb 23, 2010
Messages
73
if there is more than one hero, then use a unit variable and set it to that hero, then just move him instead of everyone. you can set the variable when the hero is picked in the beginning of the game.
 
Status
Not open for further replies.
Top