acklay infestation -1 reply

Please wait...

Superm9

Techno Union Foreman

50 XP

27th August 2007

0 Uploads

61 Posts

0 Threads

#1 11 years ago

I have added acklays to my map successfully, but they spawn so many that it takes away from the fun of the map. Here is the part in my lua for the acklays: ReadDataFile("sound\\yav.lvl;yav1cw") ReadDataFile("SIDE\\geo.lvl", "geo_inf_acklay") ReadDataFile("dc:SIDE\\rep.lvl", "rep_inf_ep3_rifleman", "rep_inf_ep3_rocketeer", "rep_inf_ep3_engineer", "rep_inf_ep3_sniper", "rep_inf_ep3_officer", "rep_inf_ep3_jettrooper", "rep_hover_fightertank", "rep_hero_macewindu", "rep_hover_barcspeeder", "rep_hover_swampspeeder") ReadDataFile("dc:SIDE\\cis.lvl", "cis_inf_rifleman", "cis_inf_rocketeer", "cis_inf_engineer", "cis_inf_sniper", "cis_inf_officer", "cis_inf_droideka", "cis_hero_grievous", "cis_hover_aat", "cis_hover_stap", "cis_walk_spider") ReadDataFile("SIDE\\tur.lvl", "tur_bldg_laser", "tur_bldg_tower") SetupTeams{ rep = { team = REP, units = 60, reinforcements = 300, soldier = { "rep_inf_ep3_rifleman",9, 26}, assault = { "rep_inf_ep3_rocketeer",1, 5}, engineer = { "rep_inf_ep3_engineer",1, 5}, sniper = { "rep_inf_ep3_sniper",1, 5}, officer = {"rep_inf_ep3_officer",1, 5}, special = { "rep_inf_ep3_jettrooper",1, 4}, }, cis = { team = CIS, units = 60, reinforcements = 360, soldier = { "cis_inf_rifleman",9, 26}, assault = { "cis_inf_rocketeer",1, 5}, engineer = { "cis_inf_engineer",1, 5}, sniper = { "cis_inf_sniper",1, 5}, officer = {"cis_inf_officer",1, 5}, special = { "cis_inf_droideka",1, 4}, } } SetTeamName (3, "acklays") AddUnitClass (3, "geo_inf_acklay", 10,15) SetUnitCount (3, 15) AddAIGoal(3, "Deathmatch", 100) SetTeamAsEnemy(ATT,3) SetTeamAsEnemy(3,ATT) SetTeamAsEnemy(DEF,3) SetTeamAsEnemy(3,DEF) Can anyone tell me how to set the min/max number of acklays on a battlefield? Thanks in advance.




Superm9

Techno Union Foreman

50 XP

27th August 2007

0 Uploads

61 Posts

0 Threads

#2 11 years ago

Sorry for the double post, but is it this part that would control the min/max number of acklays (I just copied the script for native sides from the Gametoast tutorial on the subject)?: SetUnitCount (3, 15)




SlugMantheAlmighty

Aka Snork

50 XP

3rd February 2007

0 Uploads

469 Posts

0 Threads

#3 11 years ago

well lower the unit counts...




Superm9

Techno Union Foreman

50 XP

27th August 2007

0 Uploads

61 Posts

0 Threads

#4 11 years ago

Yes, but my question is not HOW to change the numbers but WHAT numbers to change?




Guest

I didn't make it!

0 XP

 
#5 11 years ago

Change this AddUnitClass (3, "geo_inf_acklay", 10,15) SetUnitCount (3, 15) to something like this. AddUnitClass (3, "geo_inf_acklay", 1,2) SetUnitCount (3, 2) That would give you two Ackaly. Oh, and for future reference: AddUnitClass (3, "geo_inf_acklay", 10,15) << First number is minimum of that unit, second is maximum. SetUnitCount (3, 15) << First number is the team, in this example team 3, and second is maximum number of units for that team.




Superm9

Techno Union Foreman

50 XP

27th August 2007

0 Uploads

61 Posts

0 Threads

#6 11 years ago

Thanks, I'll try that out!