mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-01-01 01:09:50 -06:00
8 lines
325 B
C++
8 lines
325 B
C++
#include "ActPlayerDeathTrigger.h"
|
|
|
|
void ActPlayerDeathTrigger::OnCollisionPhantom(Entity* self, Entity* target) {
|
|
if (!target->IsPlayer() || target->GetIsDead() || !target->GetPlayerReadyForUpdates()) return; //Don't kill already dead players or players not ready
|
|
|
|
target->Smash(self->GetObjectID(), eKillType::SILENT);
|
|
}
|