Page 1 of 1

Rate of units [Solved]

Posted: Fri Aug 14, 2009 6:02 am
by Coley
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.

Re: Rate of units

Posted: Fri Aug 14, 2009 6:07 am
by Deviss
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.
do you mean how many units will appear of that class? for example you search the rocketeer appear 4 always??

Re: Rate of units

Posted: Fri Aug 14, 2009 6:09 am
by Coley
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...;))

Re: Rate of units

Posted: Fri Aug 14, 2009 6:13 am
by Deviss
Coley 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...;))
no problem, many people here aren't england or north america :wink: , well you must modify the mission.lua these lines:
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 :wink:

Re: Rate of units

Posted: Fri Aug 14, 2009 6:15 am
by Coley
Ah, I already thought that it has to do something with this part of lua.
Thank you :D

Re: Rate of units

Posted: Fri Aug 14, 2009 6:16 am
by Deviss
Coley wrote:Ah, I already thought that it have to do something with this part of lua.
Thank you :D
you are welcome man :wink:

Re: Rate of units [Solved]

Posted: Fri Aug 14, 2009 12:55 pm
by [RDH]Zerted
For the search engine, it is possible to change the rate at which units respawn. Use SetSpawnDelay() or SetSpawnDelayTeam().

Re: Rate of units [Solved]

Posted: Fri Aug 14, 2009 12:57 pm
by Coley
Thanks, but I will use the other way :)