Jump to content

Home

Remove Item Script


harIII

Recommended Posts

Try this. Replace tagtodestroy with the tag of the item you wish removed.

 

void main() {
  object oDestroy = GetFirstItemInInventory( GetFirstPC() );
  while( GetIsObjectValid( oDestroy ) ) {
     if( GetTag( oDestroy ) == "tagtodestroy" )
        DestroyObject( oDestroy, 0.00, FALSE, 0.00 );
     oDestroy = GetNextItemInInventory( GetFirstPC() );
  }
}

 

- Star Admiral

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...