- Joined
- Jun 7, 2008
- Messages
- 440
I was wondering. If one player activates this. Will not other players as well?
JASS:
function InitTrig_PST_Enable takes nothing returns nothing
local integer index
set gg_trg_PST_Enable = CreateTrigger( )
set index = 0
loop
call TriggerRegisterPlayerUnitEvent(gg_trg_PST_Enable, Player(index), EVENT_PLAYER_UNIT_ISSUED_ORDER, null)
set index = index + 1
exitwhen index == bj_MAX_PLAYER_SLOTS
endloop
endfunction