RogerBacon
King
- Joined
- Nov 16, 2003
- Messages
- 649
I want to play a sound "AS3D_UN_ARROW_FLY" but I'm not sure how to do it. I see this in the Python API in the class CyAudioGame:
Which one do I use and do I need to create a CyAudioGame object? Has anyone created sounds in a mod?
Roger Bacon
Code:
INT Play2DSoundWithId(INT scriptId)
int (int scriptId) - Play 2d sound using scriptId and return a handle to the sound.
INT Play3DSound(STRING scriptname, FLOAT x, FLOAT y, FLOAT z)
int (TCHAR* scriptname, float x, float y, float z) - Play 3d sound using scriptname at position (x,y,z) and return a handle to the sound.
INT Play3DSoundWithId(INT scriptId, FLOAT x, FLOAT y, FLOAT z)
int (int scriptId, float x, float y, float z) - Play 3d sound using scriptId at position (x,y,z) and return a handle to the sound.
Which one do I use and do I need to create a CyAudioGame object? Has anyone created sounds in a mod?
Roger Bacon