Jump to content

Home

Inventory Items Movement


Silveredge9

Recommended Posts

Posted

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. :)

Posted

Check k_inc_tar.nss for the TAR_StripCharacter function in KotOR1.

 

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...