16 lines
565 B
Plaintext
16 lines
565 B
Plaintext
void main()
|
|
{
|
|
|
|
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("AltarStrike");
|
|
effect eVisual = EffectVisualEffect(VFX_FNF_STRIKE_HOLY, FALSE);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVisual, GetLocation(oWay), 0.0f);
|
|
SetLocalInt(OBJECT_SELF, "Hammered", 1);
|
|
DelayCommand(60.0f, SetLocalInt(OBJECT_SELF, "Hammered", 0));
|
|
}
|
|
}
|
|
}
|