View Single Post
Old 08-22-2012, 05:25 PM   #35
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,279
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
Thanks JC! I tried it out but the clone still won't change his inventory. :/ Did I set it up correctly? (The clone I have spawn has nothing equipped to begin with so I didn't use the clear inventory code.)

Code:
void main()
{

object oClone = GetObjectByTag("dup_pc");

object oPC = GetFirstPC();


ApplyEffectToObject(2, EffectDisguise(GetAppearanceType(oPC)), oClone, 0.0);

int iI;

  for( iI = 0; iI <= 18; iI++ ) {
	if( GetIsObjectValid(GetItemInSlot(iI, oPC)) ){
		AssignCommand(oClone, ActionEquipItem(CreateItemOnObject(GetTag(GetItemInSlot(iI, oPC)), oClone, 1, 1), iI, TRUE));
		}
	}
}


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,