-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/AI/BuildCantinaPlan.lua#1 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * ** * * * -- * * * * * -- * * * * * * * * -- * * *** ****** * ** **** *** * * * ***** * *** -- * ** * * * ** * ** ** * * * * ** ** ** * -- *** ***** * * * * * * * * ** * * * * -- * * * * * * * * * * * * * * * -- * * * * * * * * * * ** * * * * -- * ** * * ** * ** * * ** * * * * -- ** **** ** * **** ***** * ** *** * * -- * * * -- * * * -- * * * -- * * * * -- **** * * -- --///////////////////////////////////////////////////////////////////////////////////////////////// -- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- $File: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/AI/BuildCantinaPlan.lua $ -- -- Original Author: James Yarrow -- -- $Author: Brian_Hayes $ -- -- $Change: 637819 $ -- -- $DateTime: 2017/03/22 10:16:16 $ -- -- $Revision: #1 $ -- --///////////////////////////////////////////////////////////////////////////////////////////////// require("pgevents") -- Tell the script pooling system to pre-cache this number of scripts. ScriptPoolCount = 4 function Definitions() DebugMessage("%s -- In Definitions", tostring(Script)) Category = "Build_Cantina" IgnoreTarget = true TaskForce = { { "StructureForce", "Ground_Cantina_E | Ground_Cantina_R = 1" } } DebugMessage("%s -- Done Definitions", tostring(Script)) end function StructureForce_Thread() DebugMessage("%s -- In StructureForce_Thread.", tostring(Script)) Sleep(1) -- StructureForce.Set_As_Goal_System_Removable(false) AssembleForce(StructureForce) StructureForce.Set_Plan_Result(true) DebugMessage("%s -- StructureForce done!", tostring(Script)); ScriptExit() end function StructureForce_Production_Failed(tf, failed_object_type) DebugMessage("%s -- Abandonning plan owing to production failure.", tostring(Script)) ScriptExit() end