Amon_PRC8/_module/nss/spawnwarcatmain.nss

12 lines
425 B
Plaintext
Raw Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
object oCreature = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
if (GetIsObjectValid(oCreature) == TRUE && GetDistanceToObject(oCreature) < 10.0)
{
ExecuteScript("spawnwarcat2", OBJECT_SELF);
DelayCommand(1.0,ExecuteScript("spawnwarcat2", OBJECT_SELF));
DelayCommand(3.0,ExecuteScript("spawnwarcat2", OBJECT_SELF));
DelayCommand(5.0,ExecuteScript("spawnwarcat", OBJECT_SELF));
}
}