Local Teams (Solved)
Posted: Sun Mar 30, 2008 5:29 pm
Can someone run me through the steps of setting up a local team again? I forget, and I'm trying now, but it ain't workin, and the tutorial for this is messed up, the first page with the instructions is missing.
Here's how my LUA is set up
I got a cp for both team 3 and team 4, with spawn paths. I remember something that has to do with ally paths but i forget how they work exactly. I also added the team 3 and 4 cps to the CP sections. What happens in-game is that Team 4 appears, but as a friendly, and team 3 doesn't show up at all.
Here's how my LUA is set up
Code: Select all
-- Gnomes -------------------------------
SetTeamName (3, "locals")
AddUnitClass (3, "lsd_inf_gnome", 30)
SetUnitCount (3, 30)
SetTeamAsFriend(3,ATT)
SetTeamAsFriend(3,DEF)
SetTeamAsFriend(ATT,3)
SetTeamAsFriend(DEF,3)
-- Jabberwocks --------------------------
SetTeamName(4, "acklay")
AddUnitClass (3, "lsd_inf_demon", 5)
SetUnitCount (3, 5)
SetTeamAsEnemy(4, ATT)
SetTeamAsEnemy(4, DEF)
SetTeamAsEnemy(ATT, 4)
SetTeamAsEnemy(DEF, 4)
-- They want to kill each other ------
SetTeamAsEnemy(3, 4)
SetTeamAsEnemy(4, 3)
AddAIGoal(3,"Deathmatch",200)
AddAIGoal(4,"Deathmatch",200)