IsPlayerUnconscious Shared function

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

This function was added in version: 0.0.0

Check if player is in unconscious state.

Syntax

bool isPlayerUnconscious(int id)

Required Arguments

  • id: The if od player.

Returns

true if the player is unconscious, otherwise false.

Example

Client

function saySomething(pid, msg)
{
	if (msg != "")
	{
		if(!isPlayerDead(pid) && !isPlayerUnconscious(pid))
		{
			Chat.print(255,255,255,msg)
		}
		else
		{
			Chat.print(220,20,30,"You can't say anything right now!")
		}
	}
}

Related functions