GetPlayer - Game

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Game Script

Obtains the actor representing the player.

Syntax[edit | edit source]

Actor Function GetPlayer() native global

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The Actor that represents the player.

Examples[edit | edit source]

; Print out the player to the log
Debug.Trace("Player is " + Game.GetPlayer())

See Also[edit | edit source]