PRC8/trunk/scripts/prc_npc_userdef.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

14 lines
468 B
Plaintext

//::///////////////////////////////////////////////
//:: OnUserDefined NPC eventscript
//:: prc_npc_userdef
//:://////////////////////////////////////////////
#include "prc_alterations"
void main()
{
// Unlike normal, this is executed on OBJECT_SELF. Therefore, we have to first
// check that the OBJECT_SELF is a creature.
if(GetObjectType(OBJECT_SELF) == OBJECT_TYPE_CREATURE)
ExecuteAllScriptsHookedToEvent(OBJECT_SELF, EVENT_ONUSERDEFINED);
}