Is there a way to make it so when a unit dies that another unit spawns on top of it? I was trying the spawn creature one but it only works for one unit of that ID. Heres what I was trying if u wanna see the code.
Code:
function Halfbody_Death(unit)
unit:SpawnCreature(65025, 1763.957642, 1124.309937, 7.490394, 4.960774, 148, 180000)
unit:SpawnCreature(65025, 1763.957642, 1124.309937, 7.490394, 4.960774, 148, 180000)
unit:RemoveEvents()
end
RegisterUnitEvent(65027, 4, "Halfbody_Death")
nvm figured it out