Page 1 of 1

single reinforcement

Posted: Sun Apr 05, 2009 9:30 pm
by jedimoose32
I played Theed: Hangar assault and I was wondering how I make it so that one team has only one unit on the map at a time, and it's only you. Like Theed Hangar. I've been through my ***_eli.lua and also at ObjectiveTDM, which it references, but I haven't seen anything that references the reinforcement count :? .

Also, to make it so that the player is forced onto a team, I load the ObjectiveCampaign into the main lua, correct? I remember doing this by accident once before, but I'm not sure if that was how I did it.

Re: single reinforcement

Posted: Sun Apr 05, 2009 10:26 pm
by ryukaji
ForceHumansOntoTeam1()

add that to your lua to force player onto team 1. Reinforcement count is in the .lua , it will be set to -1 in _eli but I believe if you set it to 1 that should change it to 1 reinforcement.

Re: single reinforcement

Posted: Sun Apr 05, 2009 10:34 pm
by jedimoose32
So if I set it to 1, the game will be like, "oh crap there's only room for one dude, and if we give that spot to a dumb AI that human dude will get pissed off so we have to give it to him!"

Is that right?

Re: single reinforcement

Posted: Mon Apr 06, 2009 7:31 am
by ryukaji
Well my map is just like that, and thats what I did and only I spawn.

Re: single reinforcement

Posted: Mon Apr 06, 2009 8:32 am
by Teancum
AllowAISpawn(false)

Re: single reinforcement

Posted: Mon Apr 06, 2009 10:38 pm
by jedimoose32
Teancum wrote:AllowAISpawn(false)
Thanks, but the ForcePlayerOntoTeam1() function worked great, as did the changing of the reinforcement count to 1 rather than -1.

Another quick thing: How can I change the amount of kills needed to win from whatever the option in the Instant Action Menu is to an unchangeable value like 300?

Re: single reinforcement

Posted: Tue Apr 07, 2009 6:08 pm
by [RDH]Zerted
Set the reinforcement count to 300 after you start the objective.

Re: single reinforcement

Posted: Wed Apr 08, 2009 11:48 pm
by jedimoose32
Oooooooooh, like with that SetReinforcementsTeam function (or whatever it is) from the scripting system doc that came with the ModTool?

:oops: Hahaha. Okay.