- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
Why is this trigger only firing for player 1? AFAIK, there's no parameter for a player argument for an Enter Region event. This trigger works perfectly for Player 1, but it won't do jack for any other player.
Why is this trigger only firing for player 1? AFAIK, there's no parameter for a player argument for an Enter Region event. This trigger works perfectly for Player 1, but it won't do jack for any other player.
JASS:
static method enterMain takes nothing returns boolean
local player p = GetTriggerPlayer()
local integer pid = GetPlayerId(p)
call DisplayTimedTextToPlayer(players[pid], 0, 0, 10, "Entered a region?")
endmethod
method setup takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerAddCondition(t, Condition(function CreepRegion.enterMain))
call TriggerRegisterEnterRegion(t, this.r, null)
set t = null
endmethod
Last edited by a moderator: