JASS:
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_VillHouse_In_Actions takes nothing returns nothing
local real x
local real y
local rect r
local rect all
set r = gg_rct_Village_House_In
set x = GetRectCenterX(r)
set y = GetRectCenterY(r)
call SetUnitPosition( GetTriggerUnit(), x, y + 90 )
call RemoveRect(r)
set r = gg_rct_Village_House_V
set all = GetPlayableMapRect()
call CreateFogModifierRectBJ(false, GetOwningPlayer(GetTriggerUnit()), FOG_OF_WAR_VISIBLE, all)
call CreateFogModifierRectBJ(true, GetOwningPlayer(GetTriggerUnit()), FOG_OF_WAR_VISIBLE, r)
call PanCameraToTimedForPlayer(GetOwningPlayer(GetTriggerUnit()), x, y + 90, 0)
call RemoveRect(r)
call RemoveRect(all)
endfunction
//===========================================================================
function InitTrig_VillHouse takes nothing returns nothing
set gg_trg_VillHouse = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_VillHouse, gg_rct_Village_House )
call TriggerAddAction( gg_trg_VillHouse, function Trig_VillHouse_In_Actions )
endfunction
i havent missed any of it i guess, but when i try to do it for the 3rd time, i will move my unit to the center of the map!!!please HELP!