ally path

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

ally path

Post 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?
User avatar
da_great_ghost
Corporal
Corporal
Posts: 141
Joined: Sat Feb 02, 2008 3:40 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: , Location, Location, Location

Re: ally path

Post by da_great_ghost »

What are you trying to set up? Maby i can help, so please clarify
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: ally path

Post 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
User avatar
da_great_ghost
Corporal
Corporal
Posts: 141
Joined: Sat Feb 02, 2008 3:40 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: , Location, Location, Location

Re: ally path

Post 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
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: ally path

Post 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?
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: ally path

Post 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)
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: ally path

Post by Teancum »

You have to give them an AI goal. Search for AddAIGoal in any shipped lua with local.s
Post Reply