Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
Most recent edit on 2006-09-01 13:24:14 by SunTzu [lua formatting]

Additions:
%%(lua)



Edited on 2006-01-27 18:30:32 by MiKail

Additions:
	


Deletions:




Edited on 2006-01-26 05:12:58 by MiKail

Additions:
Subtitle_Message("Display this text.", 30)

Deletions:
Subtitle_Message("For your eyes only.", 30)



Oldest known version of this page was edited on 2006-01-26 05:12:21 by MiKail []
Page view:
Player_IsLocal()

Description
Returns true if the player is the local player.

Example
if (Player_IsLocal(iPlayer) == 1) then
Subtitle_Message("For your eyes only.", 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
:: ::