22 lines
434 B
Plaintext
22 lines
434 B
Plaintext
//Put this OnDeath
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastKiller();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oTarget;
|
|
object oSpawn;
|
|
oTarget = GetWaypointByTag("WP_deadspawn_soulreaver");
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "portal_soulreaver", GetLocation(oTarget));
|
|
|
|
oTarget = oSpawn;
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SCREEN_SHAKE), GetLocation(oTarget));
|
|
|
|
|
|
DestroyObject(oSpawn, 120.0);
|
|
}
|