|
|
楼主 |
发表于 2014-7-30 13:26:05
|
显示全部楼层
肾好,余波播放声音的这个函数被我找到了
function PlaySoundPath3D takes nothing returns nothing
local sound s = CreateSound( udg_soundpath, false, true, false, 10, 10, "DefaultEAXON" )
call SetSoundDuration(s,565)
call SetSoundChannel(s,0)
call SetSoundVolume(s,udg_Sound3DVolume)
call SetSoundPitch(s,1.0)
call SetSoundDistances(s,600.0,10000.0)
call SetSoundDistanceCutoff(s,3000.0)
call SetSoundConeAngles(s, 0.0, 0.0, 127 )
call SetSoundConeOrientation(s, 0.0, 0.0, 0.0 )
call SetSoundPosition(s, bj_meleeNearestMineDist, bj_lastTransmissionDuration, 0)
call StartSound(s)
call TriggerSleepAction(12.)
call KillSoundWhenDone(s)
set s = null
endfunction |
|