mirror of
https://github.com/Squareville/wonderland-server.git
synced 2026-01-12 17:30:00 -06:00
13 lines
323 B
C++
13 lines
323 B
C++
#include "NpMilo.h"
|
|
|
|
#include "EntityInfo.h"
|
|
|
|
void NpMilo::OnDie(Entity* self, Entity* killer) {
|
|
EntityInfo info{};
|
|
info.lot = 20170;
|
|
info.pos = self->GetPosition();
|
|
info.rot = self->GetRotation();
|
|
info.spawnerID = self->GetObjectID();
|
|
Game::entityManager->ConstructEntity(Game::entityManager->CreateEntity(info));
|
|
}
|