Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
PlayerMessage
Category:
Messages
Since engine version:
4.6.5.0 CP
Description
Displays a message in the viewport of the specified player. Message formatting is done accoring to
Message
.
Syntax
bool
PlayerMessage (
int
iPlr,
string
szMessage,
object
pObj,
...);
Parameters
iPlr:
Number of the player for whom to display the message
szMessage:
Message to be displayed
pObj:
[opt] Object above which the message is to be displayed. If no object is specified, the message is displayed globally (as with
PlrMessage
).
...:
[opt] Additional message formatting parameters. Also see
Format
Example
var
pCrsr; PlayerMessage(0,
"Hallo, ich bin %s!"
, pCrsr=
GetCursor
(0),
GetName
(pCrsr));
Tells the name of the selected clonk to the owner of the clonk only.
See also:
AddMessage
,
CustomMessage
,
Message
,
PlrMessage
Sven2, August 2002
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script