Files
HeroesStone_PRC8/_module/nss/dw_destroyzombie.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

22 lines
637 B
Plaintext

#include "nw_i0_tool"
void main()
{
// Give those who destroy the altar some XP
object oTarget;
oTarget = GetObjectByTag("BlackZombie");
//Visual effects can't be applied to waypoints, so if it is a WP
//apply to the WP's location instead
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES), GetLocation(oTarget));
RewardPartyXP(500, GetLastDamager());
DestroyObject(oTarget, 2.5);
}