SayTo
Revision as of 12:50, 30 July 2007 by imported>DragoonWraith (CS 1.0)
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