What would this trigger look like in GUI ?

gjcraig

New Member
Reaction score
2
I need to make more of this trigger - can someone tell me what this trigger would be in gui ?

function Trig_Summon_Rifle_Conditions takes nothing returns boolean
if ( not ( GetResearched() == 'R007' ) ) then
return false
endif
return true
endfunction

function Trig_Summon_Rifle_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Bring_Rifle )
endfunction

//===========================================================================
function InitTrig_Summon_Rifle takes nothing returns nothing
set gg_trg_Summon_Rifle = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Summon_Rifle, gg_unit_hbla_0023, EVENT_UNIT_RESEARCH_FINISH )
call TriggerAddCondition( gg_trg_Summon_Rifle, Condition( function Trig_Summon_Rifle_Conditions ) )
call TriggerAddAction( gg_trg_Summon_Rifle, function Trig_Summon_Rifle_Actions )
endfunction
 

Lightstalker

New Member
Reaction score
55
Specific Unit Event: YourUnit finishes research

Conditions: Researched Tech-Type == YourUpgrade

Actions: Turn On Bring Riffle
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top