Yinkle Posted September 23, 2018 Posted September 23, 2018 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!
Sailing Rebel Posted September 23, 2018 Posted September 23, 2018 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.
Yinkle Posted September 23, 2018 Author Posted September 23, 2018 haha nice workaround and thanks for replying, I'll give it a go!
Yinkle Posted September 23, 2018 Author Posted September 23, 2018 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!
Sailing Rebel Posted September 23, 2018 Posted September 23, 2018 5 minutes ago, Yinkle said: Got it working, lots of trial and error! Thanks for the suggestion, it helped me along nicely! Glad you got it sorted.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.