From f891b626f37456357a0791819067620513f83ba8 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sat, 25 Oct 2014 12:45:16 +0200 Subject: [PATCH] Document another pitfall in the Lua API --- OpenRA.Mods.RA/Scripting/Properties/ProductionProperties.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Scripting/Properties/ProductionProperties.cs b/OpenRA.Mods.RA/Scripting/Properties/ProductionProperties.cs index 6d51c362be..8e13f83772 100644 --- a/OpenRA.Mods.RA/Scripting/Properties/ProductionProperties.cs +++ b/OpenRA.Mods.RA/Scripting/Properties/ProductionProperties.cs @@ -202,7 +202,8 @@ namespace OpenRA.Mods.RA.Scripting "The function will return true if production could be started, false otherwise. " + "If an actionFunc is given, it will be called as actionFunc(Actor[] actors) once " + "production of all actors has been completed. The actors array is guaranteed to " + - "only contain alive actors.")] + "only contain alive actors. Note: This function will fail to work when called " + + "during the first tick")] public bool Build(string[] actorTypes, LuaFunction actionFunc = null) { var typeToQueueMap = new Dictionary();