- 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