Difference between revisions of "SayTo"
Jump to navigation
Jump to search
imported>Maturin |
imported>JOG |
||
Line 34: | Line 34: | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Dialogue Functions]] | [[Category: Dialogue Functions]] | ||
[[Category:Actor Functions]] |
Revision as of 10:46, 28 June 2006
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