generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
15
_module/nss/demo_onenter.nss
Normal file
15
_module/nss/demo_onenter.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
// set all NPCs in area AI Level to NORMAL
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC=GetEnteringObject();
|
||||
object oNPC;
|
||||
int nC=1;
|
||||
oNPC=GetNearestObject(OBJECT_TYPE_CREATURE,oPC,nC);
|
||||
while(oNPC!=OBJECT_INVALID)
|
||||
{ // set NPCS
|
||||
SetAILevel(oNPC,AI_LEVEL_NORMAL);
|
||||
nC++;
|
||||
oNPC=GetNearestObject(OBJECT_TYPE_CREATURE,oPC,nC);
|
||||
} // set NPCS
|
||||
}
|
||||
Reference in New Issue
Block a user