GetVoiceType - ObjectReference

Revision as of 11:15, 22 July 2014 by imported>Terra Nova2 (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script (Papyrus)

Obtains the VoiceType for this actor or talking activator.

SyntaxEdit

VoiceType Function GetVoiceType() native

ParametersEdit

None

Return ValueEdit

The VoiceType the actor or talking activator is using. None if it isn't an actor or talking activator.

ExamplesEdit

; Is our object using the MalePeasent voice type?
if myObject.GetVoiceType() == MalePeasent
  Debug.Trace("Object is using the male peasent voice type, do something!")
endIf

NotesEdit

  • This is a good way to check for a specific unique actor if you wish to avoid declaring actor properties.

See AlsoEdit