Both sides previous revision Previous revision Next revision | Previous revision | ||
hpl3:game:voicehandler [2014/03/06 10:32] thomas [Sound] |
hpl3:game:voicehandler [2015/09/17 10:53] (current) ian.thomas [File Format] |
||
---|---|---|---|
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 185: | Line 185: | ||
INFO: The solution is to use the file on the screw, can have slight hint for that.\\ | INFO: The solution is to use the file on the screw, can have slight hint for that.\\ | ||
====== File Format ====== | ====== File Format ====== | ||
+ | |||
+ | (You shouldn't need this - everything can be edited using the VoiceHandler exe!) | ||
<code xml> | <code xml> |