Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/ondeath_portal.nss
Normal file
21
_module/nss/ondeath_portal.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
//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);
|
||||
}
|
Reference in New Issue
Block a user