no ai units?
Moderator: Moderators
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
no ai units?
how can i make my map have no ai units?
i removed the numbers beside the troop name byt that didnt work
and i put setunitcount to zero but that crashed my game
any ideas?
i removed the numbers beside the troop name byt that didnt work
and i put setunitcount to zero but that crashed my game
any ideas?
- Jendo7
- Sith

- Posts: 1304
- Joined: Wed Apr 01, 2009 6:37 pm
- Location: Cambridge, England.
- Contact:
Re: no ai units?
Why would you want no ai units?
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: no ai units?
thats not the point.... please can someone answer my question
but to answer your question my map would be annoying if it had ai and they would ruin what you were doing
but to answer your question my map would be annoying if it had ai and they would ruin what you were doing
- newguy99
- Command Sergeant Major

- Posts: 254
- Joined: Sun Apr 19, 2009 10:58 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: no ai units?
So You have tried editing the ModID[c or a].lua script? If you have tried putting the "set unit count(#) to (0) and it didn't work then I'm not sure what else to say
. Sorry, I'm not to savy on these things yet
-
Ty294
- Sergeant Major

- Posts: 247
- Joined: Thu Mar 12, 2009 10:28 pm
- Projects :: Various
- Location: Minnesota
Re: no ai units?
Here's what I know, one of the sides has one less unit then specifyed, I think cause of the player starting on the attacker team. Try putting the count at 1 and maybe nobody will show up.
- Jendo7
- Sith

- Posts: 1304
- Joined: Wed Apr 01, 2009 6:37 pm
- Location: Cambridge, England.
- Contact:
Re: no ai units?
Sorry about that, just wondered.MileHighGuy wrote:thats not the point.... please can someone answer my question
but to answer your question my map would be annoying if it had ai and they would ruin what you were doing
Have you tried putting "--" before each AddUnitClass
- ANDEWEGET
- Ancient Force

- Posts: 1266
- Joined: Tue Apr 01, 2008 8:42 am
- Location: Germany
- Contact:
Re: no ai units?
you have set the unit count to 0 and every number behind the units to 0?
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: no ai units?
yes
- ANDEWEGET
- Ancient Force

- Posts: 1266
- Joined: Tue Apr 01, 2008 8:42 am
- Location: Germany
- Contact:
Re: no ai units?
could i see your lua?
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: no ai units?
my lua
i have also tried it with 0 next to each unit each unit and 0 next to unitcount but that doesnt work
and adding -- would just cancel out the units and i still want to be able to be them
Hidden/Spoiler:
and adding -- would just cancel out the units and i still want to be able to be them
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: no ai units?
If I'm not mistaken, SetUnitCount also includes humans. Therefore it should be set to 1 AS A MINIMUM. That's how we do the survival maps.
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: no ai units?
but i want more than 1 human player
and forget this topic i just made th ai all on the same side and they dont attack you anymore
and forget this topic i just made th ai all on the same side and they dont attack you anymore
-
BattleBelk
- Private First Class
- Posts: 77
- Joined: Thu Jun 28, 2007 7:08 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Russia
- Contact:
Re: no ai units?
You can try play around with
It will limit units to 1. Problem thats if you late spawn 1 ai will spawn instead and you wont be able to spawn...
Code: Select all
SetMemoryPoolSize("EntitySoldier", 1)