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

[Solved] Gate is not working

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,928
I active a gate with triggers but it isn't working why?, because I don't wanna trigger the teleport
vJASS:
function Trig_Puerta_Actions takes nothing returns nothing
    call WaygateActivate(gg_unit_n004_0205,true)
    call WaygateSetDestination(gg_unit_n004_0205,GetRectCenterX(gg_rct_Receptor_de_la_puerta_1),GetRectCenterY(gg_rct_Receptor_de_la_puerta_1))
    call WaygateActivate(gg_unit_n004_0212,true)
    call WaygateSetDestination(gg_unit_n004_0212,GetRectCenterY(gg_rct_Receptor_de_la_puerta_2),GetRectCenterY(gg_rct_Receptor_de_la_puerta_2))
endfunction

//===========================================================================
function InitTrig_Puerta takes nothing returns nothing
    set gg_trg_Puerta=CreateTrigger()
    call TriggerRegisterDeathEvent(gg_trg_Puerta,gg_dest_B00G_0286)
    call TriggerAddAction(gg_trg_Puerta,function Trig_Puerta_Actions)
endfunction
 
Status
Not open for further replies.
Top