- Joined
- May 24, 2016
- Messages
- 339
The topic name desctibe my problem pretty well. Sometimes it works, sometimes dont
I tried using A LOT of methods (game state Event) mentioned on the hiveworkshop. And all of them work completely unstable throughout many tests.
JASS:
function Trig_Day_Actions takes nothing returns nothing
local integer i = 6
local real r = GetFloatGameState(GAME_STATE_TIME_OF_DAY)
if r == 6.00 then
set Day = true
set Night = false
else
set Day = false
set Night = true
endif
endfunction
function InitTrig_Day takes nothing returns nothing
set gg_trg_Day = CreateTrigger( )
call TriggerRegisterGameStateEvent(gg_trg_Day, GAME_STATE_TIME_OF_DAY, EQUAL, 6.00)
call TriggerRegisterGameStateEvent(gg_trg_Day, GAME_STATE_TIME_OF_DAY, EQUAL, 18.00)
// call TriggerAddCondition( gg_trg_Day, Condition( function Trig_Day_Conditions ) )
call TriggerAddAction( gg_trg_Day, function Trig_Day_Actions )
endfunction
I tried using A LOT of methods (game state Event) mentioned on the hiveworkshop. And all of them work completely unstable throughout many tests.