- Joined
- Apr 7, 2004
- Messages
- 18
If you have played everything right here is the triggers for an all revealing satellite
//===========================================================================
function InitTrig_Melee_Initialization_Copy takes nothing returns nothing
set gg_trg_Melee_Initialization_Copy = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization_Copy, function Trig_Melee_Initialization_Copy_Actions )
endfunction
Satellite Trigger
function Trig_Satellite_Trigger_Func001001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'hC56' )
endfunction
function Trig_Satellite_Trigger_Actions takes nothing returns nothing
if ( Trig_Satellite_Trigger_Func001001() ) then
call CreateFogModifierRectBJ( true, GetOwningPlayer(GetTriggerUnit()), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Satellite_Trigger takes nothing returns nothing
set gg_trg_Satellite_Trigger = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Satellite_Trigger, GetEntireMapRect() )
call TriggerAddAction( gg_trg_Satellite_Trigger, function Trig_Satellite_Trigger_Actions )
endfunction
//===========================================================================
function InitTrig_Melee_Initialization_Copy takes nothing returns nothing
set gg_trg_Melee_Initialization_Copy = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization_Copy, function Trig_Melee_Initialization_Copy_Actions )
endfunction
Satellite Trigger
function Trig_Satellite_Trigger_Func001001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'hC56' )
endfunction
function Trig_Satellite_Trigger_Actions takes nothing returns nothing
if ( Trig_Satellite_Trigger_Func001001() ) then
call CreateFogModifierRectBJ( true, GetOwningPlayer(GetTriggerUnit()), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Satellite_Trigger takes nothing returns nothing
set gg_trg_Satellite_Trigger = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Satellite_Trigger, GetEntireMapRect() )
call TriggerAddAction( gg_trg_Satellite_Trigger, function Trig_Satellite_Trigger_Actions )
endfunction