Difference between revisions of "PrintToConsole"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
(Automated import of articles)
 
imported>Odessa
(tostring note)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''PrintToConsole'''
{{Function
{{Function
|CSWikiPage = PrintToConsole
  |origin = FOSE1
  |origin = FOSE1
  |summary = Print formatted string to console
  |summary = Prints a string to console. Optionally with up to 20 [[String Formatting|format specifiers]].
  |name = PrintToConsole
  |name = PrintToConsole
  |alias = printc
  |alias = PrintC
  |returnType = void
  |returnType = void
  |arguments =  
  |arguments =  
   {{FunctionArgument
   {{FunctionArgument
   |Name = format string
   |Name = Message
   |Type = string
   |Type = string
   }}{{FunctionArgument
   }}{{FunctionArgument
   |Name = variable
   |Name = Formatting
   |Type = float
   |Type =  
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
  |Optional = optional
  }}{{FunctionArgument
  |Name = variable
  |Type = float
   |Optional = optional
   |Optional = optional
   }}
   }}
}}
}}
==Example==
<pre>
PrintC "This message will appear in the game console"
</pre>
With formatting:
<pre>
int iVal
set iVal to 42
PrintC "The value of iVal is: %g" iVal
</pre>
==Notes==
*Requires use of [[ToString|ToString($)]] to print [[String Variable|string variables]].
==See Also==
*[[String Formatting]]
*[[DebugPrint]]
*[[Print]] (NVSE 4 version)
*[[MessageEx]]
*[[ToString]]
[[Category:Functions_(FOSE)]]
[[Category:Functions_(FOSE)]]
[[Category:Debugging]]

Latest revision as of 05:55, 16 July 2014

< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: PrintToConsole.

A function added by the Fallout Script Extender.

Description

Prints a string to console. Optionally with up to 20 format specifiers.

Syntax

[help]
PrintToConsole Message:string Formatting 

Or:

PrintC Message:string Formatting

Example

PrintC "This message will appear in the game console"

With formatting:

int iVal
set iVal to 42
PrintC "The value of iVal is: %g" iVal

Notes

See Also