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?
locals...
Moderator: Moderators
- Bantha55
- 2nd Lieutenant

- Posts: 407
- Joined: Sun Jun 10, 2007 1:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
- Contact:
-
Grev
- Hoth Battle Chief

- Posts: 3132
- Joined: Sun Dec 09, 2007 11:45 pm
- Projects :: No Mod project currently.
- Location: A Certain Box Canyon
Re: locals...
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

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: locals...
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.
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.
- Bantha55
- 2nd Lieutenant

- Posts: 407
- Joined: Sun Jun 10, 2007 1:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
- Contact:
Re: locals...
it doesn´t works...
