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

revive trigger

Status
Not open for further replies.
Level 4
Joined
May 27, 2012
Messages
60
JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call TriggerSleepAction( 90.00 )
    call ReviveHeroLoc( GetTriggerUnit(), GetUnitLoc(GetTriggerUnit()), false )
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Untitled_Trigger_001, Player(11), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

not sure if it works, did it in 20 seconds but u can go test it
 
Level 4
Joined
May 27, 2012
Messages
60
this should work

JASS:
function Trig_Player12_Spawn_Actions takes nothing returns nothing
    call TriggerSleepAction( 90.00 )
    call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), Player(11), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
endfunction

//===========================================================================
function InitTrig_Player12_Spawn takes nothing returns nothing
    set gg_trg_Player12_Spawn = CreateTrigger(  )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Player12_Spawn, Player(11), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddAction( gg_trg_Player12_Spawn, function Trig_Player12_Spawn_Actions )
endfunction

it's a very simple trigger, i don't know why you want it jass instead of GUI
Name your trigger "Player12 Spawn"
 
Level 4
Joined
Apr 14, 2012
Messages
72
Becouse a friend of mine made it in jass, but his trigger was working only for Player_Neutral and when we switched mobs to player 12, they don't revive.
So I thought it has to be in Jass, but if you can make it on GUI for me I would appreciate it :)
I can make only GUI triggers, and not much...
 
Status
Not open for further replies.
Top