From 86519bfda575be9a839e7414fe948b13fdfc26cd Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 4 Dec 2020 17:27:16 +0000 Subject: [PATCH] Expose Player.HomeLocation to the Lua API. --- OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs b/OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs index 613d1d1e4e..9ccf0fff36 100644 --- a/OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs +++ b/OpenRA.Mods.Common/Scripting/Properties/PlayerProperties.cs @@ -39,6 +39,9 @@ namespace OpenRA.Mods.Common.Scripting [Desc("The player's spawnpoint ID.")] public int Spawn { get { return Player.SpawnPoint; } } + [Desc("The player's home/starting location.")] + public CPos HomeLocation { get { return Player.HomeLocation; } } + [Desc("The player's team ID.")] public int Team {