As in the name of this thread, I need a script to remove a specific item from the pc's inventory.
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