• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

All revealing satillete

Status
Not open for further replies.
Level 2
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
 
Status
Not open for further replies.
Top