- Joined
- Oct 12, 2008
- Messages
- 1,570
Hello people,,
As always, i go straight to the point,,
When i register a player event, and i use a variable in it,
like this:
will it run only for the preset player? (The player that is initialized as that variable), or will it run for what player is in the variable at that moment?
Lets say on initialization, udg_Player is Player(0), red,,
It runs for Player Red then,
When time is 5 seconds, i change the variable to Player(1), blue,,
Will the trigger now run for Player Red, or Player Blue??
I actually have the same question for a condition, but after thinking for a while i found out that it does (i used it in GUI some times),,
(or does it?)
Thanks in Advance! =)
-Yixx,,-
As always, i go straight to the point,,
When i register a player event, and i use a variable in it,
like this:
call TriggerRegisterPlayerUnitEvent(t, udg_Player, EVENT_PLAYER_UNIT_DEATH, null)
will it run only for the preset player? (The player that is initialized as that variable), or will it run for what player is in the variable at that moment?
Lets say on initialization, udg_Player is Player(0), red,,
It runs for Player Red then,
When time is 5 seconds, i change the variable to Player(1), blue,,
Will the trigger now run for Player Red, or Player Blue??
I actually have the same question for a condition, but after thinking for a while i found out that it does (i used it in GUI some times),,
(or does it?)
Thanks in Advance! =)
-Yixx,,-