LoD_PRC8/_module/nss/flamestrike.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

24 lines
698 B
Plaintext

#include "lod_include"
void main()
{
if(!IsPCInArea(OBJECT_SELF))
{
return;
}
if(GetTag(GetArea(GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1))) == GetTag(GetArea(OBJECT_SELF)))
{
if(GetLocalInt(OBJECT_SELF, "Hammered") == 0)
{
object oWay = GetWaypointByTag("BaneFlame");
effect eVisual = EffectVisualEffect(VFX_IMP_DIVINE_STRIKE_FIRE, FALSE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual, OBJECT_SELF, 0.0f);
SetLocalInt(OBJECT_SELF, "Hammered", 1);
DelayCommand(10.0f, SetLocalInt(OBJECT_SELF, "Hammered", 0));
}
}
}