Any way that only one unit spawns?
Posted: Tue Jun 02, 2020 5:27 pm
.
Get more from your games!
http://www.gametoast.com/
Code: Select all
SetupTeams{
all = {
team = ALL,
units = 1,
reinforcements = 150,
soldier = {"all_inf_rifleman", 0, 1},
}
}Code: Select all
SetupTeams{
all = {
team = ALL,
units = 1,
reinforcements = 150,
soldier = {"all_inf_rifleman", 0, 1},
assault = {"all_inf_rocketeer", 0, 1},
engineer = {"all_inf_engineer", 0, 1},
sniper = {"all_inf_sniper", 0, 1},
officer = {"all_inf_officer", 0, 1},
special = {"all_inf_wookiee", 0, 1},
}
}Code: Select all
SetupTeams{
all = {
team = ALL,
units = 1,
reinforcements = 150,
soldier = {"all_inf_rifleman", 0, 1},
assault = {"all_inf_rocketeer", 0, 1},
engineer = {"all_inf_engineer", 1, 1},
sniper = {"all_inf_sniper", 0, 1},
officer = {"all_inf_officer", 0, 1},
special = {"all_inf_wookiee", 0, 1},
}
}Code: Select all
SetupTeams{
all = {
team = ALL,
units = 6,
reinforcements = 150,
soldier = {"all_inf_rifleman", 1, 1},
assault = {"all_inf_rocketeer", 1, 1},
engineer = {"all_inf_engineer", 1, 1},
sniper = {"all_inf_sniper", 1, 1},
officer = {"all_inf_officer", 1, 1},
special = {"all_inf_wookiee", 1, 1},
}
}Code: Select all
SetTeamName(1, "ALL") -- sorry if "ALL" is the wrong name
SetUnitCount(1, 6) -- equivalent to putting units = 6 in the SetupTeams for team 1
SetReinforcementCount(1, 150) -- equivalent to putting reinforcements = 150 in the SetupTeams for team 1
AddUnitClass(1, "all_inf_rifleman", 1, 1) -- equivalent to putting soldier = {"all_inf_rifleman", 1, 1} in the SetupTeams for team 1
AddUnitClass(1, "all_inf_rocketeer", 1, 1)
AddUnitClass(1, "all_inf_sniper", 1, 1) -- the order of classes is important here: soldier, assault, sniper, engineer, officer, special; SetupTeams sorts these automatically
AddUnitClass(1, "all_inf_engineer", 1, 1)
AddUnitClass(1, "all_inf_officer", 1, 1)
AddUnitClass(1, "all_inf_wookiee", 1, 1)