I know how to create a beetle
- Code: Select all
local beetle = CreateUnitHPR(
"xrl0302",
"ARMY_9",
255,
25.9844,
255,
0, 0, 0
)
I know how to make it stronger and slower
- Code: Select all
beetle:SetMaxHealth(beetle:GetMaxHealth() * 10)
beetle:SetHealth(beetle, beetle:GetMaxHealth())
beetle:SetSpeedMult(0.42)
What I do not know is how to make set it's death weapon to be a nuke. I found `beetle.OnKilled` which allows me to do something when the beetle died, though I do not know how to create a nuclear explosion (without doing something silly like spawning a para and killing it) and the old death weapon is still there anyway.
I'd also like the beetle to be scaled up a little bit, though this is not as important. I tried using `beetle:SetDrawScale`, though did not see this function have any effect.