Difference between revisions of "GetPlatformName - Debug"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>SkylerModder
imported>SkylerModder
Line 16: Line 16:
== Return Value ==
== Return Value ==
The game's platform name (PC, 360, etc).
The game's platform name (PC, 360, etc).
 
<ul>
Skyrim / Skyrim Legendary Edition (PC): "Win32"
<li>"Win32" (Skyrim / Skyrim Legendary Edition (PC))</li>
Skyrim Special Edition (PC): "Win64"
<li>"Win64" (Skyrim Special Edition (PC))</li>
Xbox One: "XB1"
<li>"XB1" (Xbox One)</li>
</ul>


== Examples ==
== Examples ==

Revision as of 17:06, 4 August 2021

Member of: Debug Script

Obtains the game's platform name.

Syntax

string Function GetPlatformName() native global

Parameters

None.

Return Value

The game's platform name (PC, 360, etc).

  • "Win32" (Skyrim / Skyrim Legendary Edition (PC))
  • "Win64" (Skyrim Special Edition (PC))
  • "XB1" (Xbox One)

Examples

; Print out the current platform name to the log
Debug.Trace("You are running on the " + Debug.GetPlatformName() + " platform")

See Also