Both sides previous revision Previous revision | Last revision Both sides next revision | ||
hpl3:game:voicehandler [2014/03/06 10:32] thomas [Sound] |
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 ====== | ||