Page 1 of 1

locals...

Posted: Wed Jan 02, 2008 8:57 am
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?

Re: locals...

Posted: Wed Jan 02, 2008 9:04 am
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.

Re: locals...

Posted: Wed Jan 02, 2008 9:11 am
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.

Re: locals...

Posted: Wed Jan 02, 2008 3:26 pm
by Bantha55
it doesn´t works...