Jump to content

script to spawn a duplicate of the player


firepower02

Recommended Posts

I want a script that would spawn a copy of the player and wearing the same outfit.

I tried placeatme, and it spawned a copy of the player but with a different outfit. How can I spawn a duplicate of the player that would also wear the same thing the player is currently wearing?

 

Link to comment
Share on other sites

You can't spawn a duplicate with the same armor. But you can use commands to make the duplicate wear the same thing. Make sure you find all the itemIDs of your equipped items (I suggest writing them down on paper) you can find these by typing help "item name"

 

Open console again, click on the duplicate while the console is open.

 

Type:

showinventory

Type:

removeitem itemidoftheitemsheiswearing 10

equip itemidoftheitemyouwanthimtowear

 

Repeat this until you have him equip all the items you want.

Alternatively you can recruit him as a follower with the MCM with a mod like extensible follower framework and then have him equip what you want by simply trading with him.

Link to comment
Share on other sites

The duplicate is probably wearing the PC's base armor from the Construction Kit.

 

The best way to get the PC wearing the same armor will depend on a couple of factors. One way is to put a script on the PC that keeps track of equipped armor in a formlist. Then add the formlist to the duplicate and have it equip each piece. Another way is to use GetWornForm:

 

http://www.creationkit.com/GetWornForm_-_Actor

 

That method would require SKSE. You would have to check each slotmask and capture the item that the PC has equipped, then add that item to the duplicate and tell the duplicate to equip it.

 

The benefit of the first method is that it would be very fast, but the drawback is that the script would be running all the time and fire every single time the PC equips or unequips an item.

 

The benefit of the second is that it would be more self-contained and use fewer resources, but it would be fairly slow to execute.

Link to comment
Share on other sites

It is indeed slow, I could see the duplicate wear the other outfit, strip, then wear the same outfit at the pc. It would be fine it the duplicate was spawned somewhere off camera, until he's done wearing the same outfit. How do I make the spawned duplicate be always spawned off camera?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...