Difference between revisions of "PrintToConsole"
Jump to navigation
Jump to search
imported>Ez0n3 |
imported>Odessa (tostring note) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|CSWikiPage = PrintToConsole | |CSWikiPage = PrintToConsole | ||
|origin = FOSE1 | |origin = FOSE1 | ||
|summary = | |summary = Prints a string to console. Optionally with up to 20 [[String Formatting|format specifiers]]. | ||
|name = PrintToConsole | |name = PrintToConsole | ||
|alias = | |alias = PrintC | ||
|returnType = void | |returnType = void | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = | |Name = Message | ||
|Type = string | |Type = string | ||
}}{{FunctionArgument | }}{{FunctionArgument | ||
|Name = | |Name = Formatting | ||
|Type = | |Type = | ||
|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
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
- Requires use of ToString($) to print string variables.
See Also
- String Formatting
- DebugPrint
- Print (NVSE 4 version)
- MessageEx
- ToString