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

17 lines
465 B
Plaintext

#include "nw_i0_generic"
void main()
{
object oPC;
object oSpawn;
location lTarget;
object oTarget;
oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
oTarget =GetObjectByTag("InvisibleMarker");
lTarget =GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "skeleton001", lTarget);
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
}