locals issue

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
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

locals issue

Post by SBF_Dann_Boeing »

i can't seem to get my team 3 to work, they don't spawn, they are friendlies to both teams and have this section in the lua:
SetTeamName (3, "gnomes")
AddUnitClass (3, "lsd_inf_gnome", 8)
SetUnitCount (3, 8)
SetTeamAsFriend(3,ATT)
SetTeamAsFriend(3,DEF)
SetTeamAsFriend(ATT,3)
SetTeamAsFriend(DEF,3)
My team 4, which is an enemy to both teams does work and spawn however. The unit used in team 3 also works as a playable unit. In Zeroedit, i have cp for team 3 and a spawn path "local" (the same spawn path used for my team 4's cp). I also tried giving the local spawn path as an allypath for a couple other cps.

EDIT: The smiley face is 8 )
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

Post by EGG_GUTS »

1.Did you put this

SetTeamAsfriend(4,3)
SetTeamAsFriend(3,4)

2. I would change team 3 spawn name to local1 (well that's what I did)

3. Double check for a cp in ZE sometimes they don't work. (one time I placed a local cp and saved and when I re-opened it it wasn't there)

If it still doesn't work then I don't know.
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Post by SBF_Dann_Boeing »

not workin
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

Post by Teancum »

Add this right below ScriptPostLoad()

AddAIGoal(3, "Deathmatch", 100)
Post Reply