yes sure i explained it a bit weird
This is the trigger that should active the others 2, in the last lines
-
function Trig_player1enter_Conditions takes nothing returns boolean
-
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
-
endif
-
return true
-
endfunction
-
function Trig_player1enter_Actions takes nothing returns nothing
-
call SetUnitPositionLoc( GetEnteringUnit(), GetRectCenter(gg_rct_Rect_005) )
-
endfunction
-
//===========================================================================
-
function InitTrig_player1enter takes nothing returns nothing
-
set gg_trg_player1enter = CreateTrigger( )
-
call DisableTrigger( gg_trg_player1enter )
-
call TriggerRegisterEnterRectSimple( gg_trg_player1enter, gg_rct_Rect_004 )
-
call TriggerAddCondition( gg_trg_player1enter, Condition( function Trig_player1enter_Conditions ) )
-
call TriggerAddAction( gg_trg_player1enter, function Trig_player1enter_Actions )
-
endfunction
i just named 2 variables the same as the quests in the hope it would work but it didn't, this is one of the 2:
function Trig_player1enter_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_player1enter_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetEnteringUnit(), GetRectCenter(gg_rct_Rect_005) )
endfunction
//===========================================================================
function InitTrig_player1enter takes nothing returns nothing
set gg_trg_player1enter = CreateTrigger( )
call DisableTrigger( gg_trg_player1enter )
call TriggerRegisterEnterRectSimple( gg_trg_player1enter, gg_rct_Rect_004 )
call TriggerAddCondition( gg_trg_player1enter, Condition( function Trig_player1enter_Conditions ) )
call TriggerAddAction( gg_trg_player1enter, function Trig_player1enter_Actions )
endfunction
sorry if i should have posted those triggers on a different way, don't know how