A
Agahnim
Guest
function Trig_visibility_Actions takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(1), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(2), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(3), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(4), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(5), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(6), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(7), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(8), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(9), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(10), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(11), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(12), 0.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ( true, ConvertedPlayer(GetForLoopIndexA()), FOG_OF_WAR_VISIBLE, GetRectCenter(gg_rct_middlemap), 2048.00 )
set udg_vision[GetForLoopIndexA()] = GetLastCreatedFogModifier()
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
function InitTrig_visibility takes nothing returns nothing
set gg_trg_visibility = CreateTrigger( )
call TriggerAddAction( gg_trg_visibility, function Trig_visibility_Actions )
endfunction
set udg_vision[GetForLoopIndexA()] = GetLastCreatedFogModifier()
problems with the GetLastCreatedFogModifier() part of the line.
any suggestions?
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(1), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(2), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(3), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(4), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(5), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_humanselect, Player(6), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(7), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(8), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(9), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(10), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(11), 0.00 )
call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(12), 0.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ( true, ConvertedPlayer(GetForLoopIndexA()), FOG_OF_WAR_VISIBLE, GetRectCenter(gg_rct_middlemap), 2048.00 )
set udg_vision[GetForLoopIndexA()] = GetLastCreatedFogModifier()
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
function InitTrig_visibility takes nothing returns nothing
set gg_trg_visibility = CreateTrigger( )
call TriggerAddAction( gg_trg_visibility, function Trig_visibility_Actions )
endfunction
set udg_vision[GetForLoopIndexA()] = GetLastCreatedFogModifier()
problems with the GetLastCreatedFogModifier() part of the line.
any suggestions?