UserFunction; Player_IsLocal - HWRM/KarosGraveyard GitHub Wiki
Player_IsLocal()
Returns true if the player is the local player.
if (Player_IsLocal(iPlayer) == 1) then
Subtitle_Message("Display this text.", 30)
end
<iPlayer>: the index number of the player.
-------------------------------------------------------------------------------
-- Returns true if the player is the local player.
--
function Player_IsLocal(iPlayer)
if (iPlayer == FE_GetCurrentPlayerIndex()) then
return 1
else
return 0
end
end
Updated Formatting? Initial
Updated for HWRM? Initial