MDE Scripting: GetActivePlayer

From Nomad DB
Revision as of 19:25, 27 October 2020 by Jan (talk | contribs)
Syntax
game.game:GetActivePlayer()
Module Game
Library Game
Game Mafia: Definitive Edition


Description

Returns the Player entity.


Returns

# Type Description
1 Entity (C_SceneObjectLuaWrapper => player_archetype-2-) Player entity


Examples

local Player = game.game:GetActivePlayer() -- Player returns the player


Aliases

local Player = getp() -- Player returns the player