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

Help with Ress of Heroes!

Status
Not open for further replies.
Level 3
Joined
Aug 31, 2008
Messages
22
Hi all, that's the problem:
I've a trigger that gives me problem, but i don't understand what's wrong in it!


Events:
Unit - A unit is dead
Conditions:
And - All (Conditions) are true
Conditions: ((Dying Unit) is A hero) Equal to TRUE
((Owner of (Dying Unit)) controller ) Equal to USER


Actions:
Player Group - Pick every player in team_2 and do (Actions)
Row - Actions


Wait 5.00 seconds
Hero - Instantly revive (Dying Unit) at (center of Region 011 <gen>), Show revival Graphics
Camera - Pan Camera for (Owner of (Dying unit)) to (center of Region 011 <gen>) over 0.00 seconds
Selection - Select (Dying unit) for (Owner of (Dying unit))

Why the hell players in team_2 spawns in team_1's Spawn?
Help me please.
 
Level 13
Joined
Jul 3, 2008
Messages
1,098
you can make it a lot easier
event:
unit has died
condition:
((Dying Unit) is A hero) Equal to TRUE
owner of dying unit equal to aly of player 1
action:
wait 5 seconds
Hero - Instantly revive (Dying Unit) at (center of Region 011 <gen>), Show revival Graphics
Camera - Pan Camera for (Owner of (Dying unit)) to (center of Region 011 <gen>) over 0.00 seconds
Selection - Select (Dying unit) for (Owner of (Dying unit))

this for one team


event:
unit has died
condition:
((Dying Unit) is A hero) Equal to TRUE
owner of dying unit equal to aly of player 7
action:
wait 5 seconds
Hero - Instantly revive (Dying Unit) at (center of Region 011 <gen>), Show revival Graphics
Camera - Pan Camera for (Owner of (Dying unit)) to (center of Region 011 <gen>) over 0.00 seconds
Selection - Select (Dying unit) for (Owner of (Dying unit))

this for second one but you must select different region then in first one of course
 
Level 3
Joined
Aug 31, 2008
Messages
22
I'm convinced this would resolve my problem but i'm so retard that i can't find "ally of player 1"...How do i select it? ^^
 
thank you very much, problem solved! :)

+Reputation ^^

Argante, i have simpler thing for ya. one trigger

Event/Generic/unit dies

Condition/Bolean/ dying unit equal to hero = true

Action/IfThenElseMultipleFunctiones/
if/player/owner of dying unit = ally of team one
then/revive(dying unit)at spot/pan cam to spot/select

Action/IfThenElseMultipleFunctiones/
same as prwious but ally is team two

is this understandable o_O?
 
Status
Not open for further replies.
Top