MeleeWasUserPlayer
- Parameters
-
whichPlayer player
- comment
- patch
-
1.07
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
-
boolean
- Source code
-
function MeleeWasUserPlayer takes player whichPlayer returns boolean local playerslotstate slotState if (GetPlayerController(whichPlayer) != MAP_CONTROL_USER) then return false endif set slotState = GetPlayerSlotState(whichPlayer) return (slotState == PLAYER_SLOT_STATE_PLAYING or slotState == PLAYER_SLOT_STATE_LEFT) endfunction