ericspace1 Posted November 25, 2017 Share Posted November 25, 2017 I'm new to modding and I'm trying to make a script that will make the player encumbered when pressing the walk button, but I have absolutely no clue where to start. Could someone point me in the right direction? Link to comment Share on other sites More sharing options...
CharmicsMods Posted April 7, 2018 Share Posted April 7, 2018 Hi. I just saw this and I actually have been making a mod that also needs to be able to encumber the player. Hopefully you're still interested. First, I found no good way to apply the encumbrance effect without actually encumbering the player. What I did was create a custom item the the creation kit that weighed a lot, then did Weapon property _ModNameBurdenItem auto Actor property PlayerRef Auto in my script, and and filled those in the creation kit.You'll probably want to use https://www.creationkit.com/index.php?title=RegisterForControl_-_Formhttps://www.creationkit.com/index.php?title=OnControlDown_-_Formbut I personally don't have experience with them. You can make the script automatically run by attaching it to a quest and having the quest StartGameEnabled. Link to comment Share on other sites More sharing options...
candlepin Posted April 7, 2018 Share Posted April 7, 2018 That would work. Another option, depending on what you're trying to do, would be to change the player's carry weight actor value. Something like:PlayerRef.SetAV(CarryWeight, 0) This would encumber the player unless they weren't caring anything at all (very unlikely). If you do this, don't forget to GetAV(CarryWeight) first and store the value so you can reset it when your effect is done. Since you probably don't want this to be a permanent effect. Link to comment Share on other sites More sharing options...
Recommended Posts