Lord
TH.net Regular
- Reaction score
- 18
Code:
function Trig_Cd21_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_Decision2button[1] ) ) then
return false
endif
return true
endfunction
function Trig_Cd21_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Xtra )
call DisableTrigger( gg_trg_Xtra2 )
call PauseAllUnitsBJ( false )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "attack", gg_unit_H60L_0001 )
call TriggerSleepAction( 2,00 )
call TransmissionFromUnitWithNameBJ( GetPlayersAll(), gg_unit_H605_0002, "TRIGSTR_532", null, "TRIGSTR_533", bj_TIMETYPE_SET, 3,00, true )
call TriggerSleepAction( 2,00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 5.00 )
call CustomDefeatBJ( Player(0), "TRIGSTR_534" )
endfunction
//===========================================================================
function InitTrig_Cd21 takes nothing returns nothing
set gg_trg_Cd21 = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Cd21, udg_Decision2text )
call TriggerAddCondition( gg_trg_Cd21, Condition( function Trig_Cd21_Conditions ) )
call TriggerAddAction( gg_trg_Cd21, function Trig_Cd21_Actions )
endfunction
Hey guys!
Can you tell me what the Hell is this?
Thank You...
Now I get about 100 errors when I try to save my campaign .