21 lines
487 B
Plaintext
21 lines
487 B
Plaintext
////////////////////////////////////////////////////////
|
|
//
|
|
// 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);
|
|
}
|