MDE Scripting: GetActivePlayer

From Nomad DB
Revision as of 00:00, 16 October 2020 by Deewarz (talk | contribs) (Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.game:GetActivePlayer()</syntaxhighlight> |- !Module |Game |- !Library |MD...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Syntax
game.game:GetActivePlayer()
Module Game
Library Game
Game Mafia: Definitive Edition


Description

Returns the Player entity.


Returns

# Type Description
1 entity Player entity


Example

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