- 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))
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Custom script: set something_like_this[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] = true
set something_like_this[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] = trueThere'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)
![]()
Custom script: call RemoveLocation(udg_Point[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))])
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())(...).
Events

Unit - Unit is Attacked
InfinateAnswers said:well get trigger player.... there is no triggering player.. its a triggering unit...
Test

Events


Unit - A unit Dies

Conditions

Actions


Game - Display to (All players) the text: (Name of (Triggering player))


Game - Display to (All players) the text: (Name of (Triggering unit))
Test

Events


Unit - A unit enters (Entire map)

Conditions

Actions


Game - Display to (All players) the text: (Name of (Triggering player))


Game - Display to (All players) the text: (Name of (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.
