Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

30 lines
549 B
Plaintext

void main()
{
object oCreature = GetEnteringObject();
if (GetLocalInt(oCreature, "UNDER_WATER_IMMUNE")!= 1)
return;
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("horseunsummon");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oCreature, ClearAllActions());
AssignCommand(oCreature, ActionJumpToLocation(lTarget));
oTarget = oCreature;
effect eEffect;
eEffect = EffectDeath();
DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget));
}