$$ACTION Sound && Music Play Sound [n:Sound] from object [o:Object], volume = [p:Volume=1.0:0.0|1.0] aSoundPlayObject Play Object Sound Plays a sound from an object Parameters: Sound: the sound to play Object: the object to attach the sound to Volume: how loud to play the sound $$END */
| 2763 | $$END |
| 2764 | */ |
| 2765 | void aSoundPlayObject(int soundnum, int objref, float volume) { |
| 2766 | msafe_struct mstruct; |
| 2767 | |
| 2768 | mstruct.index = soundnum; |
| 2769 | mstruct.volume = volume; |
| 2770 | mstruct.objhandle = objref; |
| 2771 | |
| 2772 | MSafe_CallFunction(MSAFE_SOUND_OBJECT, &mstruct); |
| 2773 | } |
| 2774 | |
| 2775 | /* |
| 2776 | $$ACTION |
no outgoing calls