View Full Version : Inventory Items Movement

01-18-2008, 03:49 PM
I've been trying to figure out a script that would take all the items currently possessed in the players inventory and place them in a container. Like when you're captured on the Leviathan. This is as usual, for K1.

I suspect it has something to do with the GetFirstItem/GetNextItem actions, but I'm not 100% certain. Could anybody care to clear this up for me, point me in the right direction? :P

Any help on this would be greatly appreciated. :)

01-18-2008, 08:07 PM
Check k_inc_tar.nss for the TAR_StripCharacter function in KotOR1.

#include "k_inc_tar"
void main() {
TAR_StripCharacter(GetFirstPC(), GetObjectByTag("my_footlocker"));