Hi,
where can I change the rate of a unit (how often can the same unit in the same time exist on the battlefield).
It´s probably an easy question..I searched in localize, in the rep-side-folder, but I did´nt found something.
Rate of units [Solved]
Moderator: Moderators
-
Coley
- Sergeant Major

- Posts: 249
- Joined: Sun Aug 09, 2009 11:27 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Rate of units
do you mean how many units will appear of that class? for example you search the rocketeer appear 4 always??Coley wrote:Hi,
where can I change the rate of a unit (how often can the same unit in the same time exist on the battlefield).
It´s probably an easy question..I searched in localize, in the rep-side-folder, but I did´nt found something.
-
Coley
- Sergeant Major

- Posts: 249
- Joined: Sun Aug 09, 2009 11:27 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
Re: Rate of units
Yes, I mean it. I don´t come from England/America, so I´m sorry that it´s possible that I use some weird verbs
(or weird statements...
)
(or weird statements...
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Rate of units
no problem, many people here aren't england or north americaColey wrote:Yes, I mean it. I don´t come from England/America, so I´m sorry that it´s possible that I use some weird verbs![]()
(or weird statements...)
rep = {
team = REP,
units = 40,
reinforcements = 150,
soldier = { "rep_clon1",18, 20},
heavy = { "rep_inf_rockteer",3,4},
sniper = { "rep_clon3",3,4},
engineer = { "rep_clon4",3,4},
marine = { "rep_clon5",3,4},
recon = { "rep_clon6",3,4},
gunner = { "rep_clon7",3,4},
special = { "rep_clon8",3,4},
commander = { "rep_clon9",1,2},
},
3 is the minimum of units and 4 is the maximum, also you can put 3,3 so always appear 3
-
Coley
- Sergeant Major

- Posts: 249
- Joined: Sun Aug 09, 2009 11:27 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
Re: Rate of units
Ah, I already thought that it has to do something with this part of lua.
Thank you
Thank you
Last edited by Coley on Fri Aug 14, 2009 6:18 am, edited 1 time in total.
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Rate of units
you are welcome manColey wrote:Ah, I already thought that it have to do something with this part of lua.
Thank you
- [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: Rate of units [Solved]
For the search engine, it is possible to change the rate at which units respawn. Use SetSpawnDelay() or SetSpawnDelayTeam().
-
Coley
- Sergeant Major

- Posts: 249
- Joined: Sun Aug 09, 2009 11:27 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
Re: Rate of units [Solved]
Thanks, but I will use the other way 
