Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This function was added in Warzone 3.2.

Syntax

Code Block
themeEclipse
languagejavascript
linenumberstrue
chat(to,message);

 

 

chat(target player, message)

Send a message to target player. Target may also be ALL_PLAYERS or ALLIES. (3.2+ only)

* chat(target, message), for sending chat messages. chat may be ALL_PLAYERS or ALLIES or a specific player number

...

Parameters

ParameterTypeMandatoryDescriptionGame version
to

Number,

Constant

(tick)

Who should the message be sent to?

  • Specify a player id to send to that specific player
  • Or use one of the following constants:
    Child pages (Children Display)
    alltrue
    depthall
    pageChat Scope
    excerpttrue
3.2
messageString(tick)The message to send to the recipient.3.2

Return value

Not know at present.

Example

Code Block
chat(ALLIES,"Hello friends");

See also