- Joined
- Oct 8, 2005
- Messages
- 409
I don't use jass, but my trigger keeps giving me a Compile error "Excepted a function name"
and then:
function Trig__Ice_Chamber_Destination_Actions takes nothing returns nothing
call WaygateSetDestinationLocBJ( udg_ICeChamber[GetConvertedPlayerId(GetOwningPlayer(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_Ice_Region, Condition(function Trig__Ice_Chamber_Destination_Func001001001001001002)))))], GetUnitLoc(udg_Wendigo[GetConvertedPlayerId(GetOwningPlayer(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_Ice_Region, Condition(function Trig__Ice_Chamber_Destination_Func001002001001001001002)))))]) )
endfunction
//===========================================================================
function InitTrig__Ice_Chamber_Destination takes nothing returns nothing
set gg_trg__Ice_Chamber_Destination = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg__Ice_Chamber_Destination, gg_rct_Ice_Region )
call TriggerAddAction( gg_trg__Ice_Chamber_Destination, function Trig__Ice_Chamber_Destination_Actions )
endfunction
and then:
function Trig__Ice_Chamber_Destination_Actions takes nothing returns nothing
call WaygateSetDestinationLocBJ( udg_ICeChamber[GetConvertedPlayerId(GetOwningPlayer(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_Ice_Region, Condition(function Trig__Ice_Chamber_Destination_Func001001001001001002)))))], GetUnitLoc(udg_Wendigo[GetConvertedPlayerId(GetOwningPlayer(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_Ice_Region, Condition(function Trig__Ice_Chamber_Destination_Func001002001001001001002)))))]) )
endfunction
//===========================================================================
function InitTrig__Ice_Chamber_Destination takes nothing returns nothing
set gg_trg__Ice_Chamber_Destination = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg__Ice_Chamber_Destination, gg_rct_Ice_Region )
call TriggerAddAction( gg_trg__Ice_Chamber_Destination, function Trig__Ice_Chamber_Destination_Actions )
endfunction