Difference between revisions of "Say - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>DavidJCobb
(→‎Notes: SEQ needed)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
'''Member of:''' [[ObjectReference Script]]
'''Member of:''' [[ObjectReference Script]]


Line 30: Line 28:
Statue.Say(HaltTopic, TownGuard)
Statue.Say(HaltTopic, TownGuard)
</source>
</source>
==Notes==
* For full dialogue as a different actor, you probably want [[TalkingActivator]].
* If used on an actor and that actor attempts to initiate normal dialogue (for example a random greeting) while saying something through Say(), the game will crash to desktop.
* ObjectReferences aren't exempt from the need for a SEQ file. If one hasn't been generated, the Say function may fail.


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[Bethesda Tutorial Conversations]]
*[[Bethesda Tutorial Dialogue]]
*[[Bethesda Tutorial Advanced Dialogue]]
*[[Say (Procedure)]]
*[[TalkingActivator]]
*[[Say]] console command.
*[[SayTo]] console command.
[[Category:Scripting]]
[[Category:Papyrus]]

Latest revision as of 20:11, 28 September 2017

Member of: ObjectReference Script

Causes this reference to speak a topic as if it were the specified actor.

Syntax[edit | edit source]

Function Say(Topic akTopicToSay, Actor akActorToSpeakAs = None, bool abSpeakInPlayersHead = false) native

Parameters[edit | edit source]

  • akTopicToSay: The topic the object should say
  • akActorToSpeakAs: The actor this object reference should use to speak as (passed to topic conditions and used to select voices). This parameter is ignored if this function is called on an actor. If it is none, no actor will be used for conditions.
    • Default: None
  • abSpeakInPlayersHead: Should the voice come from within the player's head?
    • Default: False

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Have the actor say the topic
JoeBob.Say(HowdyTopic)


; Have the statue speak the topic as if it were the town guard
Statue.Say(HaltTopic, TownGuard)

Notes[edit | edit source]

  • For full dialogue as a different actor, you probably want TalkingActivator.
  • If used on an actor and that actor attempts to initiate normal dialogue (for example a random greeting) while saying something through Say(), the game will crash to desktop.
  • ObjectReferences aren't exempt from the need for a SEQ file. If one hasn't been generated, the Say function may fail.

See Also[edit | edit source]

  • Say console command.
  • SayTo console command.