Jump to content

Scripts please help.


Cohagen

Recommended Posts

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 by LoneRaptor
Link to comment
Share on other sites

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.

image.png

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

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

 

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 by Cohagen
Link to comment
Share on other sites

  • Recently Browsing   0 members

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