Page 1 of 1

locals problem

Posted: Tue Dec 19, 2017 2:47 pm
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?

Re: locals problem

Posted: Wed Dec 20, 2017 11:33 am
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

Re: locals problem

Posted: Wed Dec 20, 2017 6:40 pm
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.

Re: locals problem

Posted: Thu Dec 21, 2017 1:42 pm
by Delta327
ok and im just trying to add locals not an ambush lol

Re: locals problem

Posted: Thu Dec 21, 2017 2:05 pm
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 !

Re: locals problem

Posted: Thu Dec 21, 2017 2:38 pm
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)

Re: locals problem

Posted: Fri Dec 22, 2017 4:25 am
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).

Re: locals problem

Posted: Sat Dec 23, 2017 4:33 pm
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

Re: locals problem

Posted: Sat Dec 23, 2017 6:05 pm
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.

Re: locals problem

Posted: Wed Dec 27, 2017 11:27 am
by Delta327
can see a example of the lua?