harIII Posted November 14, 2009 Share Posted November 14, 2009 As in the name of this thread, I need a script to remove a specific item from the pc's inventory. Link to comment Share on other sites More sharing options...
Star Admiral Posted November 14, 2009 Share Posted November 14, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.