LoneRaptor Posted November 29, 2016 Share Posted November 29, 2016 (edited) DisablePlayerControls is a valid function for fallout 4 but you need to call it on an ImputLayer not the player. Have a look at the wiki page for this function. And For future reference the reason the creation kit added the {} I suspect is because you typed the script in the description field when creating it which will not work. You need to create it and then right click edit sourse. Edited November 29, 2016 by LoneRaptor Link to comment Share on other sites More sharing options...
Lisselli Posted November 29, 2016 Share Posted November 29, 2016 That's because you're calling it on the wrong type. It should be: Game.DisablePlayerControls(abVATs = true) Link to comment Share on other sites More sharing options...
Cohagen Posted November 29, 2016 Author Share Posted November 29, 2016 DisablePlayerControls is a valid function for fallout 4 but you need to call it on an ImputLayer not the player. Have a look at the wiki page for this function. And For future reference the reason the creation kit added the {} I suspect is because you typed the script in the description field when creating it which will not work. You need to create it and then right click edit sourse. Thank you for you continued help. I would like to help my self but there is clearly something i am failing to understand.Below was the results of many hours on the wiki, I can't see what i am missing here.It compiles if i make the script in a Quest stage but it does not seem to function in game. Thanks again. Link to comment Share on other sites More sharing options...
Lisselli Posted November 30, 2016 Share Posted November 30, 2016 (edited) Oh I see it's different in Fallout 4. In skyrim it's called on type Game. First remove const and recompile again, it seems to keep the script from accepting those functions. Edited November 30, 2016 by Lisselli Link to comment Share on other sites More sharing options...
steve40 Posted November 30, 2016 Share Posted November 30, 2016 Thank you for you continued help. I would like to help my self but there is clearly something i am failing to understand.Below was the results of many hours on the wiki, I can't see what i am missing here.It compiles if i make the script in a Quest stage but it does not seem to function in game. Thanks again. You need to handle the InputEnableLayer within an Event. Link to comment Share on other sites More sharing options...
LoneRaptor Posted November 30, 2016 Share Posted November 30, 2016 Like Steve40 said you need to put those lines inside and event or if you want to disable the controls at the same time as start your game then you can just place these 2 lines inside the fragment on stage 20 of your quest like you did with the code to start the game. Link to comment Share on other sites More sharing options...
Cohagen Posted November 30, 2016 Author Share Posted November 30, 2016 (edited) Double posted again. Edited November 30, 2016 by Cohagen Link to comment Share on other sites More sharing options...
Cohagen Posted November 30, 2016 Author Share Posted November 30, 2016 (edited) Like Steve40 said you need to put those lines inside and event or if you want to disable the controls at the same time as start your game then you can just place these 2 lines inside the fragment on stage 20 of your quest like you did with the code to start the game. Thanks guys, i see now that it does work and its during the event i can disable player contols.I was hoping it would toggle Vats until i enabled it again with another event lol, well at least i know now. Edited November 30, 2016 by Cohagen Link to comment Share on other sites More sharing options...
Lisselli Posted November 30, 2016 Share Posted November 30, 2016 Well, I certainly felt like I was ignored.. Good luck I guess. Link to comment Share on other sites More sharing options...
Cohagen Posted November 30, 2016 Author Share Posted November 30, 2016 Well, I certainly felt like I was ignored.. Good luck I guess.Not intended to offend, I said thanks guys including you. The scrip works now just not as I thought the function would. Link to comment Share on other sites More sharing options...
Recommended Posts