• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Gate is not working

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,938
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