Difference between revisions of "PrintToConsole"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Odessa
(Clarified, added links)
imported>Odessa
(tostring note)
 
Line 16: Line 16:
   }}
   }}
}}
}}
==Example==
==Example==
<pre>
<pre>
Line 28: Line 27:
PrintC "The value of iVal is: %g" iVal
PrintC "The value of iVal is: %g" iVal
</pre>
</pre>
 
==Notes==
*Requires use of [[ToString|ToString($)]] to print [[String Variable|string variables]].
==See Also==
==See Also==
*[[String Formatting]]
*[[String Formatting]]
*[[DebugPrint]]
*[[DebugPrint]]
*[[Print]]
*[[Print]] (NVSE 4 version)
*[[MessageEx]]
*[[MessageEx]]
*[[ToString]]
*[[ToString]]
[[Category:Functions_(FOSE)]]
[[Category:Functions_(FOSE)]]
[[Category:Debugging]]
[[Category:Debugging]]

Latest revision as of 06: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