-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/AI/LandMode/LandEscortPlan.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/LandMode/LandEscortPlan.lua $ -- -- Original Author: Brian Hayes -- -- $Author: Brian_Hayes $ -- -- $Change: 637819 $ -- -- $DateTime: 2017/03/22 10:16:16 $ -- -- $Revision: #1 $ -- --///////////////////////////////////////////////////////////////////////////////////////////////// require("pgevents") -- -- Land Mode Escort -- function Definitions() Category = "Land_Escort" IgnoreTarget = true TaskForce = { { "MainForce" ,"DenyHeroAttach" ,"Infantry = 1" ,"LandHero = 0,1" } } end function MainForce_Thread() BlockOnCommand(MainForce.Produce_Force()); QuickReinforce(PlayerObject, AITarget, MainForce) DebugMessage("Taskforce %s following object %s.", tostring(MainForce), tostring(Target)) -- Give an initial order to put the escorts in a state that the Escort function expects MainForce.Guard_Target(AITarget) while true do Escort(MainForce, AITarget) end ScriptExit() end