Warhammer 40,000: Dawn of War III

Warhammer 40,000: Dawn of War III

Victory Point XL Beta v1.0
5 Comments
Weemdog  [author] 24 Jan, 2022 @ 1:35pm 
I'm not sure if this was the actual code I published...I have a lot of versions...not sure which actually worked. Hopefully this can get you started.
Weemdog  [author] 24 Jan, 2022 @ 1:35pm 
I also had this up top where I initialized variables...


IGSquadSBP = BP_GetSquadBlueprint("imperial_guardsman_squad")
HVSquadSBP = BP_GetSquadBlueprint("house_varlock_guard")
ChaosSquadSBP = BP_GetSquadBlueprint("bloodletter")
Weemdog  [author] 24 Jan, 2022 @ 1:31pm 
I had to look back through, but I think this is what I did. But...I remember those pink boxes. I hated those pink boxes. And I remember getting them sometimes and not getting them sometimes. And having no clue why sometimes they popped up and sometimes they didn't. It has something to do with how the game precaches models. But I couldn't find out how to force the game to precache models. If you can figure it out, let me know.
Weemdog  [author] 24 Jan, 2022 @ 1:31pm 
function DeployBonusSquad()

local center = Util_ScarPos(0, 0)
local startPos = Player_GetStartingPosition(teamOnePlayer)
local race = Player_GetRaceName(teamOnePlayer)

if race == "orks" then
OrkBonus = SGroup_CreateIfNotFound("OrkBonus")
Util_DeploySquads(SPAWN.Ork_Rokk, teamOnePlayer, OrkBonus, Prox_GetRandomPosition(startPos, 40, 20), {{sbp = SBP.ORKS.BLOODLETTER}})
end
if race == "eldar" then
EldarBonus1 = SGroup_CreateIfNotFound("EldarBonus1")
Util_DeploySquads(SPAWN.Eldar_Webway, teamOnePlayer, EldarBonus1, Prox_GetRandomPosition(startPos, 150, 100), {{sbp = SBP.ELDAR.HOUSE_VARLOCK_GUARD}})

end
if race == "space_marines" then
SMBonus = SGroup_CreateIfNotFound("SMBonus")
Util_DeploySquads(SPAWN.SM_Thunderhawk, teamOnePlayer, SMBonus, Prox_GetRandomPosition(startPos, 40, 20), {{sbp = SBP.SPACE_MARINES.IMPERIAL_GUARDSMAN_SQUAD}})
end
end
Mıkı 19 Jan, 2022 @ 3:08am 
Hey, maybe you'll help me?
How did you put the Imperial Guard in your mod? When I try to make them buildable in the SM HQ, the icon and text is there, but when I build them, I only get pink boxes with "This model has not been precached"