PlayerMessage

Category: Messages
Since engine version: 1.0 OC

Description

Displays a message in the viewport of the specified player. Message formatting is done accoring to Message.

Syntax

bool PlayerMessage(int player, string message,  ...);

Parameters

player:
Number of the player for whom to display the message.
message:
Message to be displayed
...:
[opt] Additional message formatting parameters. Also see Format.

Example

var cursor=GetCursor(0);
cursor->PlayerMessage(0, "Hello, I am %s!", GetName(cursor));
Tells the name of the selected clonk to the owner of the clonk only.
See also: CustomMessage, Message
Sven2, 2002-08