Page 1 of 1

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

Posted: Thu Dec 30, 2004 3:14 pm
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.

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

Posted: Thu Dec 30, 2004 4:54 pm
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

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

Posted: Thu Dec 30, 2004 5:22 pm
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 :-)

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

Posted: Thu Dec 30, 2004 5:37 pm
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

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

Posted: Thu Dec 30, 2004 5:43 pm
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.

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

Posted: Thu Dec 30, 2004 5:45 pm
by Rends
I´ve set up a SP for my NPCs and set it to team 3.

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

Posted: Thu Dec 30, 2004 5:58 pm
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.

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

Posted: Thu Dec 30, 2004 6:14 pm
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.

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

Posted: Thu Dec 30, 2004 6:27 pm
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)

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

Posted: Thu Dec 30, 2004 7:10 pm
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?