Hiya, I have been trying to make a unit who goes into a region teleport to another one, but I'm doing something wrong.. It looks like this:
Anyone see what kind of mistake I'm doing here? I'd love some help =)
-
function Trig_Teleport_to_HigherMoria_Actions takes nothing returns nothing
- call SetUnitPositionLoc( GetTriggerUnit(), GetRectCenter(gg_rct_Teleport_into) )
- endfunction
- //===========================================================================
-
function InitTrig_Teleport_to_LowerMoria takes nothing returns nothing
- set gg_trg_Teleport_to_LowerMoria = CreateTrigger( )
- call TriggerRegisterEnterRectSimple( gg_trg_Teleport_to_HigherMoria, gg_rct_Teleport_Into_2 )
- call TriggerAddAction( gg_trg_Teleport_to_HigherMoria, function Trig_Teleport_to_HigherMoria_Actions )
- endfunction
Anyone see what kind of mistake I'm doing here? I'd love some help =)