locals...

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
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 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:

locals...

Post by Bantha55 »

Ok, for local units i have to add this to the lua:

SetTeamName(3, "locals")
AddUnitClass(3,"civ_inf_civillian",3)
SetUnitCount(3,3)
AddAIGoal(3, "Deathmatch", 3)
SetTeamAsFriend(DEF,3)
SetTeamAsFriend(3,DEF)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)

But i want that the unit...
...spawns at the cps of the republic.
...has an unitcount of 40 units.
...is only a friend of the republic.

How do i have to change the lua-add?
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: locals...

Post by Grev »

I am 105% sure there is a tutorial. Look in the everything you need to know thread. Im 105% sure its there. There is something you add, and it can be done, just look.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: locals...

Post by Aman/Pinguin »

SetTeamName(3, "locals")
AddUnitClass(3,"civ_inf_civillian",40)
SetUnitCount(3,40)
AddAIGoal(3, "Deathmatch", 400)
SetTeamAsFriend(DEF,3)
SetTeamAsFriend(3,DEF)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)

In Zeroeditor:

Create a new path at the cp they have to spawn
name it ally_path1
Select the CP and insert as "AllyPath"
ally_path1



If I'm wrong at something, correct me.
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 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: locals...

Post by Bantha55 »

it doesn´t works...
Post Reply