Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
hpl3:game:voicehandler [2014/02/25 12:33] thomas |
hpl3:game:voicehandler [2015/09/17 10:52] ian.thomas [Setup] |
||
---|---|---|---|
Line 9: | Line 9: | ||
====== Setup ====== | ====== Setup ====== | ||
- | Before calling a subject the source of the sound should be set up. This is done with SetVoiceSource() in cVoiceHandler, or better the helper function Voice_SetSource(). This sets up the entity (which can be something moving) which will emit the voice coming from the specified character. It will also set up the distance that the voice can be heard. Do this in OnEnter in the map script file. | + | Before calling a subject the source of the sound should be set up. This is best done inside the VoiceHandler editor itself, but can also be done using the helper function Voice_SetSource(). This sets up the entity (which can be something moving) which will emit the voice coming from the specified character. It will also set up the distance that the voice can be heard. If using the function, it's best to do this in ''OnEnter'' in the map script file. |
====== Properties ====== | ====== Properties ====== | ||
Line 134: | Line 134: | ||
Number of seconds before the subtitles show up. | Number of seconds before the subtitles show up. | ||
- | **ExtraSoundOffset** \\ | + | **ExtraEffectOffset** \\ |
Number of seconds before the effect file starts to play. | Number of seconds before the effect file starts to play. | ||
- | **ExtraSoundFile** \\ | + | **ExtraEffectFile** \\ |
File path to an extra sound file that is played along with the voice. | File path to an extra sound file that is played along with the voice. | ||
- | **EndsAfterExtraSound** \\ | + | **EndsAfterExtraEffect** \\ |
If the sound should end when the extra sound file is done playing (and not the voice). | If the sound should end when the extra sound file is done playing (and not the voice). | ||