Jump to content

Photo

Make a script "use" a console command?

script scripting console commands

  • Please log in to reply
2 replies to this topic

#1
YouDoNotKnowMyName

YouDoNotKnowMyName

    Overseer of Vault 114 / Destroyer of Precombines

  • Members
  • PipPipPip
  • 816 posts

Good evening everybody!

 

Is there any way to get a script to "use" a console command?

 

Because I have found a console command that would be just what I need, but there is nothing like it in the papyrus scripting "language".

So would it be possible to somehow use "normal" console commands in scripts?

 

Specifically this one:

 

targetID.ToggleControlsDriven

 

It makes the player "control" the selected NPC.

And there is no other was to do this.

(setPlayerControls does not work)

 

Please, if you know anything about this, let me know here.

 

I know that I already asked this in anohter topic, but I thougt I'd make this specific question a separate topic, because this is just about that specific question, not the general concept of what I am trying to do ("Multiple playable characters").



#2
dylbill

dylbill

    Faithful poster

  • Supporter
  • PipPipPipPip
  • 1,493 posts

Looks like SetPlayerControls(True) would be your best bet. If that's not working, I know there's a mod called ConsoleUtil for Skyrim Special Edition that does what you're describing: https://www.nexusmod...tion/mods/24858. Maybe you can ask the author to help you port it to Fo4.



#3
YouDoNotKnowMyName

YouDoNotKnowMyName

    Overseer of Vault 114 / Destroyer of Precombines

  • Members
  • PipPipPip
  • 816 posts

Looks like SetPlayerControls(True) would be your best bet. If that's not working, I know there's a mod called ConsoleUtil for Skyrim Special Edition that does what you're describing: https://www.nexusmod...tion/mods/24858. Maybe you can ask the author to help you port it to Fo4.

I don't have Skyrim SE, so I guess I can't really "work" with that ...

But I will have a look at it anyway ...

 

(Looks at it)

 

Ok, there is some simple script stuff, but not much actual scripting, how does this mod ....

 

(Looks at the ScriptExtenderPlugin stuff)

 

.... oh ....

Well. looks like I'll have something to do for the next decade ...







Also tagged with one or more of these keywords: script, scripting, console commands

Page loaded in: 1.042 seconds