Dynamically create a new weapon via scripting?

Post » Sat Aug 06, 2016 2:47 pm

So I am thinking about adding grip changing (go from 2 to 1 hands with a bastard sword for example) to my mod. I tried this a few years ago and had a lot of issues. For one thing ALL the weapons that all the actors use would change not just the one the player held if it was from the same base object.



I want to try this again but this time instead of changing the weapon the player has I would COPY it to a new weapon but make the new weapon have a different grip.



Then auto switch the two weapons when the player wants to switch grips.



What SKSE functions would be needed do accomplish this?



I am assuming this idea is workable because of enchanting weapons basically does this right?



I know all the functions for changing the stats on the weapon, what I need is the functions for coping the weapon to a new base object like is done in enchanting.


I cannot seem to find them in the functions list but I could swear I read about doing this some time ago.

User avatar
Zualett
 
Posts: 3567
Joined: Mon Aug 20, 2007 6:36 pm

Post » Sat Aug 06, 2016 1:28 am

Never mind I found the function: Tempclone

User avatar
Paula Rose
 
Posts: 3305
Joined: Fri Feb 16, 2007 8:12 am


Return to V - Skyrim