PRC8_fork/trunk/scripts/prc_npc_userdef.nss

14 lines
468 B
Plaintext
Raw Normal View History

//::///////////////////////////////////////////////
//:: 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);
}