generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
20
_module/nss/opw_amuletofpwr.nss
Normal file
20
_module/nss/opw_amuletofpwr.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
////////////////////////////////////////////////////////
|
||||
//
|
||||
// DM Destory Object Script
|
||||
// opw_amuletofpwr
|
||||
// By Don Anderson
|
||||
//
|
||||
// Placed in the Module On Activate Item Event
|
||||
//
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetItemActivator();
|
||||
object oItem = GetItemActivated();
|
||||
object oTarget = GetItemActivatedTarget();
|
||||
|
||||
if(GetTag(oItem) != "AmuletofPower") return;
|
||||
|
||||
if(oPC != oTarget && oItem != oTarget) DestroyObject(oTarget,0.1);
|
||||
}
|
||||
Reference in New Issue
Block a user