generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
16
_module/nss/skel_spawner2.nss
Normal file
16
_module/nss/skel_spawner2.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
#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));
|
||||
}
|
||||
Reference in New Issue
Block a user