Jump to content

modding query


Recommended Posts

Posted

Hi all,

 

I couldn't work out a way to trigger an actual shout via script so I made a spell which is triggered using the myspell.cast(myplayerreference) method. Is there a way to trick the game into thinking an actual player shout has been performed? Or even better, a way to auto cast a custom shout? This is primarily to make surrounding npcs react accordingly.

 

Any help much appreciated!

Posted
3 hours ago, Sailing Rebel said:

Turned up this: https://forums.nexusmods.com/index.php?/topic/5089545-need-help-with-shout-by-script/

 

Interesting method forcing the player to use the shout by overriding the shout key input.


ShoutKey=Input.GetMappedKey("Shout",0x00)
[...]
	Input.HoldKey(ShoutKey)
	Utility.wait(0.06)
[...]
	Input.ReleaseKey(ShoutKey)
[...]

Not tried it myself.

Got it working, lots of trial and error! Thanks for the suggestion, it helped me along nicely!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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