• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Gate is not working

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