Jump to content

Script to make sure dialogue lines are from assigned VoiceType


Recommended Posts

I have 15 NPCs that will speak in their races default voice even when assigned a VoiceType. I think that there are 5 that exhibit this behavior but need to make sure they're fixed before I release an update.

 

I know there is a GetIsVoiceType() but am not sure what function to call to make sure the lines belong to that VoiceType.

Link to comment
Share on other sites

You can change an actor's voice type (Actor script) with this function:

SetOverrideVoiceType( VoiceType akVoiceType )

It's from the "DLC01BotSetVoiceType" script:

Event OnEffectStart(Actor akTarget, Actor akCaster)
	oldVoiceType = (akTarget as Actor).GetVoiceType()
	(akTarget as Actor).SetOverrideVoiceType(newVoiceType)
EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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