Page 1 of 1

ally path

Posted: Tue Jan 29, 2008 1:44 pm
by Bantha55
i write a side in the lua

Code: Select all

         ReadDataFile("dc:SIDE\\emp.lvl",
                       "emp_hero_darthvader",
                       "emp_droid_probe")
and add this

Code: Select all

   SetTeamName(4, "locals")
   AddUnitClass(4, "emp_hero_darthvader",1)
   AddUnitClass(4, "emp_droid_probe",13)
   SetUnitCount(4, 14)
   SetTeamAsFriend(ATT,4)
   SetTeamAsFriend(4,ATT)
   SetTeamAsEnemy(DEF,4)
   SetTeamAsEnemy(4,DEF)
then i go into the zero edidor and make a ordinary path wich i name "ally_path1".In the ally path section of the cp it belongs to i write the name "ally_path1",too.

but unfortunately it doesn´t work...What tells the ally path wich team spawns at it?

Re: ally path

Posted: Sun Feb 03, 2008 5:51 am
by da_great_ghost
What are you trying to set up? Maby i can help, so please clarify

Re: ally path

Posted: Sun Feb 03, 2008 6:29 am
by Bantha55
I wanted that locals spawn at my ally pathes but the problem is solved...i made them playable units because i tried everything and it didn´t work

Re: ally path

Posted: Sun Feb 03, 2008 12:46 pm
by da_great_ghost
maby this is it? dont know i have never done locals
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
EMP = 0;or EMP =3
-- These variables do not change
ATT = REP;
DEF = CIS;


function ScriptPostLoad()


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
then in zero editor make a cp that belongs to your locals and link the ally path to it

also do what you did






if you need anythin else just ask

Re: ally path

Posted: Sun Feb 03, 2008 4:21 pm
by Caleb1117
In the options for when you have a CP selected in ZE there should be a "team" box, is it set to 3?

Re: ally path

Posted: Mon Feb 04, 2008 6:49 am
by Bantha55
i didn´t want that the locals have a cp, they shall spawn at a imperial cp for exaple,like the wookies in the ordinary bf2 kashyyyk map(they spawn at the rep cps)

Re: ally path

Posted: Mon Feb 04, 2008 8:38 am
by Teancum
You have to give them an AI goal. Search for AddAIGoal in any shipped lua with local.s