GetPlatformName - Debug

From the CreationKit Wiki
Revision as of 16:54, 4 August 2021 by imported>SkylerModder (→‎Return Value)
Jump to navigation Jump to search

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).

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

Examples

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

See Also