Difference between revisions of "GetPlatformName - Debug"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>SkylerModder
 
(3 intermediate revisions by 2 users not shown)
Line 15: Line 15:


== Return Value ==
== Return Value ==
The game's platform name (PC, 360, etc).
The game's platform name:
<ul>
<li>"Win32" (Skyrim / Skyrim Legendary Edition (PC))</li>
<li>"Win64" (Skyrim Special Edition (PC))</li>
</ul>


Skyrim / Skyrim Legendary Edition (PC): "Win32"
* "XB1" (Xbox One)
Skyrim Special Edition (PC): "Win64"
 
Xbox One: "XB1"
* "Orbis" (PlayStation 4)
 
* "NintendoX" (Nintendo Switch)


== Examples ==
== Examples ==

Latest revision as of 18:05, 4 December 2021

Member of: Debug Script

Obtains the game's platform name.

Syntax[edit | edit source]

string Function GetPlatformName() native global

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The game's platform name:

  • "Win32" (Skyrim / Skyrim Legendary Edition (PC))
  • "Win64" (Skyrim Special Edition (PC))
  • "XB1" (Xbox One)
  • "Orbis" (PlayStation 4)
  • "NintendoX" (Nintendo Switch)

Examples[edit | edit source]

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

See Also[edit | edit source]