firepower02 Posted May 4, 2015 Share Posted May 4, 2015 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 More sharing options...
Noortje Posted May 4, 2015 Share Posted May 4, 2015 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:showinventoryType:removeitem itemidoftheitemsheiswearing 10equip 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 More sharing options...
lofgren Posted May 4, 2015 Share Posted May 4, 2015 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 More sharing options...
firepower02 Posted May 4, 2015 Author Share Posted May 4, 2015 (edited) I like the 2nd idea, thank you! I accomplished it by removing all items by the duplicate, getting the currently worn armor of the player and equiping them to the duplicate. Edited May 4, 2015 by firepower02 Link to comment Share on other sites More sharing options...
firepower02 Posted May 4, 2015 Author Share Posted May 4, 2015 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 More sharing options...
lofgren Posted May 5, 2015 Share Posted May 5, 2015 You could spawn it disabled and then enable it once it's dressed. Link to comment Share on other sites More sharing options...
firepower02 Posted May 5, 2015 Author Share Posted May 5, 2015 If it is spawn disabled, is it invisible? Link to comment Share on other sites More sharing options...
lofgren Posted May 5, 2015 Share Posted May 5, 2015 Yep, disabled means that no graphics, animations, or AI are loaded. Link to comment Share on other sites More sharing options...
firepower02 Posted May 5, 2015 Author Share Posted May 5, 2015 (edited) The disable and enable works perfectly, it buys the spawn some time to change clothes, and when he appears he's already wearing the same current outfit as the player. Edited May 6, 2015 by firepower02 Link to comment Share on other sites More sharing options...
Recommended Posts