Locals (yoda) not spawning?

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
OGEB1103

Locals (yoda) not spawning?

Post by OGEB1103 »

Ok, i know that there is probabily a topic about this out there, and i've already used some of the info from others but i just cannot get locals to spawn.
I added this section in the lua:

Code: Select all

-- Local Stats 
    SetTeamName(3, "locals") 
    SetUnitCount(3, 1) 
    AddUnitClass(3, "rep_hero_yoda", 1) 
    SetTeamAsFriend(3, ATT) 
    SetTeamAsFriend(ATT, 3)
    SetTeamAsEnemy(3, DEF) 
    SetTeamAsEnemy(DEF, 3) 
I also added yoda in the ReadDataFile section above this section.
Any help would be great.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Locals (yoda) not spawning?

Post by Penguin »

you need a command post for that team, also a spawn path so they can spawn
OGEB1103

RE: Locals (yoda) not spawning?

Post by OGEB1103 »

Really, i thought they used their friends ones. Ok, i'll try that. Thanks
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Locals (yoda) not spawning?

Post by Penguin »

nope, they dont, lol. sometimes i which they did, just so i wouldn't have wasted 6 CPS for 5 local teams >.<
OGEB1103

RE: Locals (yoda) not spawning?

Post by OGEB1103 »

Hmm, is there anyway to make these cps invisble?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Locals (yoda) not spawning?

Post by Penguin »

yep, use the invis command post, and sink to -5 under the terrain.

basicly, the invis one doesn't show up on the map. and sinking it makes it so you can't see the object and the light affect thing
OGEB1103

RE: Locals (yoda) not spawning?

Post by OGEB1103 »

Ok, thanks.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Locals (yoda) not spawning?

Post by Penguin »

also, in game when you kill yoda its going to show up as [NULL]

start editlocalize.bat, and go into

"level", create a Scope by right clicking on level and pressing "Add Scope". name the Scope to the 3 letter name of your map. then right click on it and press "Add Key" name the key to "local" then click on it and type in the top left big box "Yoda"

then under that box there will be a drop down menu, select french, type in the box below that "yoda" then go down to the next one in the drop down menu and type in yoda, etc etc etc, do that to all of them.

then save and exit. :p
OGEB1103

RE: Locals (yoda) not spawning?

Post by OGEB1103 »

Thannks, but he didn't spawn :(
I'll go through what i did:
I put the invisible cp in, i changed the team to "3" and sunk it -5
Next i created a spawn path, and then added that to the cp's stats.
I went into the lua and added a cp underneath the other 4 but renamed it to 5 (cos that whatv i called in in ZE)
I assume that i don't have to add it to the conquest cps cos it doesn't have a capture region.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Locals (yoda) not spawning?

Post by Penguin »

don't add the CP to the lua
OGEB1103

RE: Locals (yoda) not spawning?

Post by OGEB1103 »

Ok, will that not make it work, or is that just an optional thing.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Locals (yoda) not spawning?

Post by Penguin »

might, might not.

i forgot, add this to the lua ((in the local side thing))

AddAIGoal(3, "Deathmatch", 100)
OGEB1103

RE: Locals (yoda) not spawning?

Post by OGEB1103 »

Yes, it works now. Thanks a lot Penguin
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Locals (yoda) not spawning?

Post by Penguin »

:p
Post Reply