Difference between revisions of "SayTo"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(CS 1.0)
imported>Fella
Line 33: Line 33:


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Functions (CS 1.0)]]
[[Category: Actor Functions]]
[[Category: Actor Functions]]

Revision as of 11:53, 23 January 2008

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

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


See Also

Say