Uhps,totaly forgot about that xml list,sorry will have a look inside thanks.Ehh this is inventory function pretty oblivious, Are you have some trouble with them?
View attachment 19066
How does the inv_item_get_equipped_item return the weapon name and how do i get it to put it in inv_item_remove ?Uhps,totaly forgot about that xml list,sorry will have a look inside thanks.
I guess its true or false No its string! But how do i get the string?How does the inv_item_get_equipped_item return the weapon name and how do i get it to put it in inv_item_remove ?
Thanks a lot but would it erase the weapons or just deselect.If i unequip an item in oblivion it stays in the inventory (console) if i unequipp all on char player in sriv it deletes all weapons.I belive this will work
Code:function remove_current_weapon(ACTOR) local current_weapon=inv_item_get_equipped_item(ACTOR) inv_item_remove(current_weapon, ACTOR) end
This function inv_item_remove removes an item from inventory if you want to deselect weapon you should set inv_item_equip_slot to the unarmed slot or so, but I don't know how it works with NPCThanks a lot but would it erase the weapons or just deselect. If I unequip an item in oblivion it stays in the inventory (console) if i unequipp all on char player in sriv it deletes all weapons.
Ah,ok will test that.This function inv_item_remove removes an item from inventory if you want to deselect weapon you should set inv_item_equip_slot to the unarmed slot or so, but I don't know how it works with NPC
Ok after a few tests inv_item_equip(nil,ACTOR) did the trick.Ah,ok will test that.