GetDisplayName - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

F4SE Member of: ObjectReference Script
Requires F4SE version 0.3.2 or higher.

Returns the current name of this ObjectReference.

Syntax[edit | edit source]

string Function GetDisplayName() Native

Parameters[edit | edit source]

  • None

Return Value[edit | edit source]

  • Returns the current name of this ObjectReference.

Examples[edit | edit source]

string PlayerName = Game.GetPlayer().GetDisplayName()
Debug.MessageBox("The player's name is " + PlayerName)

See Also[edit | edit source]