Jump to content

Mute Player/disable shouts


gooser

Recommended Posts

Posted

I want to be able to in a script disable the player's ability to use shouts and also set their cooldowns? Is this possible? Any tips?

 

Thanks

Posted

DD stuff like ring gags prevents PC and NPCs to use the shouts, I think.

 

Maybe you should investigate these mods.

Posted

Ah, I see. i guess there is no other way. 

Function DoRegister()
	if Terminate
		return
	EndIf
	RegisterForSingleUpdate(1.0)
EndFunction

Event OnUpdate()
	ApplyGagEffect()
	DoRegister()
EndEvent

Function ApplyGagEffect()
	if Terminate
		return
	EndIf
	if (!Target.Is3DLoaded() || Target.IsDead() || Target.IsDisabled())
		return
	EndIf
	Shout theShout = Target.GetEquippedShout()
	If theShout != None
		Target.UnequipShout(TheShout)
	EndIf
	libs.ApplyGagEffect(Target)
EndFunction

Seems brute forcish...

Posted

Basically, every 1 sec we unequip any shout equipped and apply the gag effects (Get/SetPhonemeModifier)

  • 1 month later...
Posted

In the vanilla game there's a global variable named "AllowPlayerShout" which starts the game set at 0 and gets set to 1 after you kill the first dragon. (Quest MQ104 objective 90) I haven't tested it but I suspect if you set it back to 0 it'll disable shouting. I'll have to do some more exploring to figure out cooldowns...

Archived

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

  • Recently Browsing   0 members

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