locals problem

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
Delta327
Master Sergeant
Master Sergeant
Posts: 160
Joined: Thu Jan 21, 2016 8:55 pm
Projects :: Shattered Galaxy
Games I'm Playing :: Swbf2
xbox live or psn: No gamertag set
Location: In the Mid Rim of the galaxy

locals problem

Post by Delta327 »

so im adding some locals for a map on my mod and for some reason the wont spawn i look at a tutorial and did every right there just not spawning any idea?
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: locals problem

Post by Lorul1 »

an ambush ? most of the time the problem will be spelling errors so make sure to double check and after that post your lua (or just the parts with the ambush) here
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: locals problem

Post by AQT »

^ How did you get ambush from the information he provided?
Delta327 wrote:i look at a tutorial and did every right there
When something doesn't work, the majority of the time it means you didn't do everything right. Go through your steps again maybe two more times until you are able to spot your mistake. If you can't, describe what you did and post any changes you made involved in getting locals to work.
Delta327
Master Sergeant
Master Sergeant
Posts: 160
Joined: Thu Jan 21, 2016 8:55 pm
Projects :: Shattered Galaxy
Games I'm Playing :: Swbf2
xbox live or psn: No gamertag set
Location: In the Mid Rim of the galaxy

Re: locals problem

Post by Delta327 »

ok and im just trying to add locals not an ambush lol
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: locals problem

Post by Lorul1 »

Woops !! My mind was thinking ambush for some reason . Sorry about that Delta

Here's are some related topics that might just help u with whatever your missing :
viewtopic.php?f=27&t=30004&p=502412&hil ... ls#p502412
viewtopic.php?f=27&t=32779&p=528671&hil ... ls#p528671
viewtopic.php?f=27&t=19356&p=333685&hil ... ls#p333685

and of course the tut:
viewtopic.php?f=27&t=6088&hilit=adding+locals

It's always a good idea to look at the scripts from the villain maps.

If after double checking you still need help post your lua and I will look over it !
Delta327
Master Sergeant
Master Sergeant
Posts: 160
Joined: Thu Jan 21, 2016 8:55 pm
Projects :: Shattered Galaxy
Games I'm Playing :: Swbf2
xbox live or psn: No gamertag set
Location: In the Mid Rim of the galaxy

Re: locals problem

Post by Delta327 »

i have one more question how do you get them to spawn in the commandpost in conquest meaning like on kashyyyk the wookies spawn with the teams commandpost (ist confusing i k ow)
Calrissian97
Second Lance Corporal
Second Lance Corporal
Posts: 102
Joined: Sun May 07, 2017 11:31 pm
Projects :: ANF - ISM Skin Changer - BF1 Ports
Games I'm Playing :: All teh BFs
Location: Kentucky, USA

Re: locals problem

Post by Calrissian97 »

Delta327 wrote:i have one more question how do you get them to spawn in the commandpost in conquest meaning like on kashyyyk the wookies spawn with the teams commandpost (ist confusing i k ow)
In the commandpost instance settings, you can set the allypath parameter and make a spawn path for the allied team only when the command post is under friendly control (I think).
Delta327
Master Sergeant
Master Sergeant
Posts: 160
Joined: Thu Jan 21, 2016 8:55 pm
Projects :: Shattered Galaxy
Games I'm Playing :: Swbf2
xbox live or psn: No gamertag set
Location: In the Mid Rim of the galaxy

Re: locals problem

Post by Delta327 »

i did that and i put bes_spawn

EDIT
can some one give a walkthourgh on how to do the ally path

Double posting is against the RULES; please EDIT your post instead -Staff
Calrissian97
Second Lance Corporal
Second Lance Corporal
Posts: 102
Joined: Sun May 07, 2017 11:31 pm
Projects :: ANF - ISM Skin Changer - BF1 Ports
Games I'm Playing :: All teh BFs
Location: Kentucky, USA

Re: locals problem

Post by Calrissian97 »

Ok so here's what I've done in order to get a third side working (GAR = Naboo Royal Guard)
First your cp. Make sure it's controlled by a friendly team, and set the instance properties as seen here:
Hidden/Spoiler:
Image
Also make sure your path looks like this:
Hidden/Spoiler:
Image
Then make sure the following lines are near the start of your lua:

Code: Select all

REP = 1;
CIS = 2;
GAR = 3;
-- These variables do not change
ATT = REP;
DEF = CIS;
And this after the objective is determined (all that conquest stuff):

Code: Select all

AddAIGoal (GAR, "Deathmatch", 100)
And finally this sometime after you setup the teams:

Code: Select all

SetTeamAsEnemy(GAR, CIS)
SetTeamAsEnemy(CIS, GAR)
SetTeamAsFriend(GAR, REP)
SetTeamAsFriend(REP, GAR)
SetTeamName(3, "locals")
Substitute the team number with whatever you like, as well as the team name GAR. Just make sure you're doing everything right when you setup your third team (in the team setup section) and you should be good to go. If you still have trouble, look over the tutorials again until you understand it all. If I can help anymore, just let me know.
Delta327
Master Sergeant
Master Sergeant
Posts: 160
Joined: Thu Jan 21, 2016 8:55 pm
Projects :: Shattered Galaxy
Games I'm Playing :: Swbf2
xbox live or psn: No gamertag set
Location: In the Mid Rim of the galaxy

Re: locals problem

Post by Delta327 »

can see a example of the lua?
Post Reply