[DiscordArchive] It's the model collision?
[DiscordArchive] It's the model collision?
Archived author: Frost® • Posted: 2023-11-24T07:00:11.670000+00:00
Original source
450.044281 is the high after death with hover enabled, correct high maybe 448.740997 but cant set it on death
Archived author: Frost® • Posted: 2023-11-24T07:11:29.819000+00:00
Original source
hmmmm these seems to work:
void JustDied(Unit*) override
{
summons.DespawnAll();
me->StopMoving();
if (m_pInstance)
m_pInstance->SetData(TYPE_KOLOGARN, DONE);
Talk(SAY_DEATH);
me->SetHover(true); // corspe does not fall down through the ground anymore
me->UpdatePosition(me->GetPositionX(), me->GetPositionY(), 448.740997, me->GetOrientation(),true); //set correct? high for the body after death
me->SetPositionDataUpdate(); // send pos data out
me->SetCorpseDelay(604800); // Prevent corpse from despawning.
![[Image: image.png?ex=690c4b9e&is=690afa1e&hm=52b...47659360b&]](https://cdn.discordapp.com/attachments/284323424032129024/1177508362624188486/image.png?ex=690c4b9e&is=690afa1e&hm=52b3351b1629412535322ac2a22467f7f7862cb5d9547654594a2b347659360b&)
Archived author: Frost® • Posted: 2023-11-24T07:17:50.739000+00:00
Original source
BUT Position is then to low:
![[Image: image.png?ex=690c4b9e&is=690afa1e&hm=52b...47659360b&]](https://cdn.discordapp.com/attachments/284323424032129024/1177508362624188486/image.png?ex=690c4b9e&is=690afa1e&hm=52b3351b1629412535322ac2a22467f7f7862cb5d9547654594a2b347659360b&)
Archived author: Frost® • Posted: 2023-11-24T07:17:53.526000+00:00
Original source
idk why xD