EN6_PRC8/_module/nss/en5_activateitem.nss
Jaysyn904 a6f6db7303 Initial commit
Initial commit.  Updated release archive.
2024-06-13 15:08:33 -04:00

21 lines
463 B
Plaintext

#include "x2_inc_switches"
void main()
{
int nEvent =GetUserDefinedItemEventNumber();
object oItem = GetItemActivated();
object oPC = GetItemActivator();
if (GetModuleSwitchValue(MODULE_SWITCH_ENABLE_TAGBASED_SCRIPTS) == TRUE)
{
SetUserDefinedItemEventNumber(X2_ITEM_EVENT_ACTIVATE);
int nRet = ExecuteScriptAndReturnInt(GetUserDefinedItemEventScriptName(oItem),OBJECT_SELF);
if (nRet == X2_EXECUTE_SCRIPT_END)
{
return;
}
}
}