How do you make jawas (3rd faction) not an enemy ??

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
Lord_Bandu

How do you make jawas (3rd faction) not an enemy ??

Post by Lord_Bandu »

iv managed to get jawas in my map but they arnt freindly to both imps and rebs .....causing my bots to attack them. i dont want this . anyone know what to do?

also is there anyway to not have to make a seperate CP for them to spawn from . at the moment im using a normal CP without regions (so there not capturable) but id prefer not to see a CP at all.

heres 2 pics of the 2 problems - http://img.photobucket.com/albums/v326/aldro/jawa.jpg

http://img.photobucket.com/albums/v326/ ... howing.jpg



also does anyone know how i can correct this xwing problem? on zeroedit they look fine (not underground and the landing pads arnt above them) . i made them props so there not usable . the tiefighter props work fine tho..
http://img.photobucket.com/albums/v326/ ... roblem.jpg

heres the tiefighters- http://img.photobucket.com/albums/v326/ ... rpzone.jpg

might it be something to do with the fact xwings have a take off animation?

thanks.
Lord_Bandu

RE: How do you make jawas (3rd faction) not an enemy ??

Post by Lord_Bandu »

this is how the lua for my mod is set -

ReadDataFile("SIDE\\des.lvl",
"tat_inf_jawa");

and


-- Local Stats
SetTeamName (3, "locals")
AddUnitClass (3, "tat_inf_jawa", 14);
SetUnitCount (3, 14)
SetTeamAsFriend(3,ATT)
SetTeamAsFriend(3,DEF)


jawas are set as team 3 but still they arnt friendly to either rebels or imps .


how did the the jawas spawn in the mos eisly map? ....i didnt see any jawa CP's in there
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 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: How do you make jawas (3rd faction) not an enemy ??

Post by Rends »

this settings make them unfriendly to both fractions:

SetTeamAsFriend(3,ATT)
SetTeamAsFriend(3,DEF)

so they will attack fraction ATT and DEF

Delete the lines or place some "--" before and your Jawas will be friendly :-)
Lord_Bandu

RE: How do you make jawas (3rd faction) not an enemy ??

Post by Lord_Bandu »

thanks . hows your map comin along?


how have you made them spawn? iv made a cp for them and made it uncapturable but id prefer to have no CP ,like in Mos Eisly
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

RE: How do you make jawas (3rd faction) not an enemy ??

Post by Saturn_V »

Those lines were copied from the Mos Eisley lua.

Look at this, from the Endor lua:

-- Local Stats
SetTeamName (3, "locals")
AddUnitClass (3, "ewk_inf_trooper", 4);
AddUnitClass (3, "ewk_inf_repair", 6);
SetUnitCount (3, 14)
SetTeamAsFriend(3,ATT)
SetTeamAsEnemy(3,DEF)

Lord Bandu is currently testing some ideas out.
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 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: How do you make jawas (3rd faction) not an enemy ??

Post by Rends »

I´ve set up a SP for my NPCs and set it to team 3.
Lord_Bandu

RE: How do you make jawas (3rd faction) not an enemy ??

Post by Lord_Bandu »

rends i added those dash's and the jawas still show as red / enemies for both sides.......and the bots just keep attacking them.
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

RE: How do you make jawas (3rd faction) not an enemy ??

Post by Saturn_V »

Perhaps because there are no hubs or hint nodes guiding bot behaviour, they attack the local team because they don't know what else to do.
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

RE: How do you make jawas (3rd faction) not an enemy ??

Post by Saturn_V »

Of course! ::more slapping of forehead::

From the Endor lua again, then:

-- Attacker Stats
SetUnitCount(ATT, 25)
SetReinforcementCount(ATT, 200)
SetTeamAsFriend(ATT, 3)

-- Defender Stats
SetTeamAsEnemy(DEF, 3)
Lord_Bandu

RE: How do you make jawas (3rd faction) not an enemy ??

Post by Lord_Bandu »

hey i figured that out on my own just then! im a genius lol .

but i really need to sort out the hub/connection/paths i havent a clue how to do it .

im trawling thro the documentation at the moment .

hows it work? do i have to put a few hubs over each spawn path and then join them up using the connection? please help me with this , this is basically the only thing holding me back -gameplaywise - before i release my version 0.9 (test) map.

Is there anything in assets that will show me the Hubs , paths etc for a map already done? - so basically i can just copy it.

half my bots dont fight.

thanks

PS my jawa's are missing their voices/sfx how would i go about putting them in?
Post Reply