- Joined
- Jun 17, 2010
- Messages
- 2,275
I remember being told the answer to this once a long time ago, but i forgot it, whats the name in custom script to fix a point with an array ((Player number of (owner of (triggering unit))
set something_like_this[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] = true
There's the BJ function GetConvertedPlayerId(integer player_number) where Player 1 (red) is GetConvertedPlayerId(1)Oh care about that Player(0) in jass == Player(1) in GUI.
Yes but I hate red code in my scripts.There's the BJ function GetConvertedPlayerId(integer player_number) where Player 1 (red) is GetConvertedPlayerId(1)
Probably because GUI For loops A starts with 1 by defaultYes but I hate red code in my scripts.
Also I have no idea why would he use it, so I go with common way.
Or (...)GetPlayerId(GetTriggerPlayer())(...).
InfinateAnswers said:well get trigger player.... there is no triggering player.. its a triggering unit...
Its never worked for me before so i assumed it wouldnt work for me now. Only time triggering player has worked for me is with a Player event.