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.
single reinforcement
Moderator: Moderators
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
single reinforcement
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.
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.
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: single reinforcement
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.
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.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: single reinforcement
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?
Is that right?
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: single reinforcement
Well my map is just like that, and thats what I did and only I spawn.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: single reinforcement
AllowAISpawn(false)
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: single reinforcement
Thanks, but the ForcePlayerOntoTeam1() function worked great, as did the changing of the reinforcement count to 1 rather than -1.Teancum wrote:AllowAISpawn(false)
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?
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: single reinforcement
Set the reinforcement count to 300 after you start the objective.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: single reinforcement
Oooooooooh, like with that SetReinforcementsTeam function (or whatever it is) from the scripting system doc that came with the ModTool?
Hahaha. Okay.
