-
Content Count
589 -
Joined
-
Last visited
-
Days Won
18
Single Status Update
-
Trying to get this to work...
void main() {
object oPC = GetFirstPC();
//object oInvent = GetFirstObjectInInventory(oPC);
object oItem = GetFirstObjectInInventory(oPC);
while(oItem != OBJECT_INVALID){
//if (GetIsObjectValid(oItem)) {
int iTypeR = GetBaseItemType(oItem);
if ((iTypeR== BASE_ITEM_LIGHTSABER)
|| (iTypeR== BASE_ITEM_DOUBLE_BLADED_LIGHTSABER)
|| (iTypeR== BASE_ITEM_SHORT_LIGHTSABER)
|| (iTypeR== BASE_ITEM_LIGHTSABER)
|| (iTypeR== BASE_ITEM_DOUBLE_BLADED_LIGHTSABER)
|| (iTypeR== BASE_ITEM_SHORT_LIGHTSABER))
{
DestroyObject(oItem );
}
//oInvent = GetNextObjectInInventory(oPC);
//object oItem = GetNextObjectInInventory(oPC);
}
}