Problems with a line

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?
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
'Problems'? What kind of problems?
As long as you have an variable array of type fogmodifier (Visibility Modifier in GUI) named udg_vision (vision in GUI) there shouldn't be any compile errors on that line.

Why didn't you just post the gui trigger and in the right section?
This is just a gui trigger converted to 'custom script'.
 

Chocobo

White-Flower
Reaction score
409
Code:
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 )

Hmmm... converted player integer..

Code:
[COLOR=Red]call CameraSetupApplyForPlayer( true, gg_cam_undeadselect, Player(0), 0.00 )
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 )[/COLOR]
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top