$$ACTION Sound && Music Play 2D Sound [n:Sound] for all players, volume = [p:Volume=1.0:0.0|1.0] aSoundPlay2D Play 2D Sound Plays a sound in 2D Parameters: Sound: the sound to play Volume: how loud to play the sound $$END */
| 2739 | $$END |
| 2740 | */ |
| 2741 | void aSoundPlay2D(int soundnum, float volume) { |
| 2742 | msafe_struct mstruct; |
| 2743 | |
| 2744 | mstruct.state = 0; // all players |
| 2745 | mstruct.index = soundnum; |
| 2746 | mstruct.volume = volume; |
| 2747 | |
| 2748 | MSafe_CallFunction(MSAFE_SOUND_2D, &mstruct); |
| 2749 | } |
| 2750 | |
| 2751 | /* |
| 2752 | $$ACTION |
no outgoing calls
no test coverage detected