SayTo

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Syntax:

SayTo TargetActor, TopicID, ForceSubtitleFlag (optional)

Example:

SayTo Joe SecretTopic 
SayTo player SecretTopic 1

Use the function to have an NPC speak a single dialogue item to the player or another NPC. The speaking NPC will head track or turn towards the target, if his current package allows it, but will not wait to close the distance (so you will want to make sure to call this at an appropriate speaking distance).


Returns the time in seconds that the NPC will take to finish speaking, which can be useful for timing followups in scripts.


If ForceSubtitleFlag = 1, the subtitles will be displayed regardless of distance between the speaker and the player.


Example Script[edit | edit source]

begin gamemode
	if timer > 0 
		set timer to timer - getsecondspassed
	elseif talk == 1
		set lastStage to CharacterGen.tauntStage
		set timer to SayTo player, CharGenTaunt2 1
		if getstage characterGen == 9
			set characterGen.convTimer to timer - .5
		endif
	endif
end

Notes[edit | edit source]

  • This function can be used on player to force him into saying something.


See Also[edit | edit source]