Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
Player_IsLocal()

Description
Returns true if the player is the local player.

Example
if (Player_IsLocal(iPlayer) == 1) then
Subtitle_Message("Display this text.", 30)
end

Arguments
<iPlayer>: the index number of the player.

Definition
-------------------------------------------------------------------------------
-- 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

Related Pages
:: ::