Initial commit. Updated release archive.
This commit is contained in:
14
_module/nss/modelspawn.nss
Normal file
14
_module/nss/modelspawn.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
void main()
|
||||
{
|
||||
object oClothes = GetFirstItemInInventory();
|
||||
int iCounter = 0;
|
||||
|
||||
while(oClothes != OBJECT_INVALID)
|
||||
{
|
||||
SetLocalObject(OBJECT_SELF, "clothes" + IntToString(iCounter), oClothes);
|
||||
iCounter++;
|
||||
oClothes = GetNextItemInInventory();
|
||||
}
|
||||
SetLocalInt(OBJECT_SELF, "clothescount", iCounter);
|
||||
ActionEquipItem(GetLocalObject(OBJECT_SELF, "clothes0"), INVENTORY_SLOT_CHEST);
|
||||
}
|
Reference in New Issue
Block a user