Scripting/Squirrel/Client Functions/Console::Print

From Vice City Multiplayer
Revision as of 05:13, 14 July 2016 by Xmair (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function writes text to the game console.

Syntax

Console.Print( szText )

Arguments

  • STRING szText The message to print.

Example

This will message 'player has died.' whenever a player dies.

function Player::PlayerDeath( player ) {

Console.Print( player.Name + " has died." );

}

Notes

The event Player::PlayerDeath was used in in this example. More info about them in the corresponding pages.