scardoc;Sound

scardoc;Sound
Functions

 Sound_ForceMusicEnabled( )
 

用于作弊菜单【功能:强制启用音乐】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (98) 

 Sound_ForceSetMinimumMusicCombatIntensity( Real combatIntensity, Real durationSeconds )
 

强制将战斗强度设置为至少combatIntensity,持续一段时间。【功能:强制设置最小音乐战斗强度】

Use a duration of -1 for an indefinite override. Use a duration of 0 to cancel the override. Does not trigger any music events.

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (51) 

 Sound_ForceSilenceEnabled( )
 

用于作弊菜单【功能:强制启用静音】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (83) 

 Sound_MusicStop( )
 

立即停止音乐并进入静音状态。【功能:停止音乐】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (104) 

 Sound_PlaySpeech( String eventName, Integer eventArgs )
 

根据本地玩家的种族播放语音事件。【功能:播放语音】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (151) 

 Sound_PlaySpeechForPlayer( PlayerID player, String eventName, Integer eventArgs )
 

根据指定玩家的种族播放语音事件。【功能:为指定玩家播放语音】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (141) 

 Sound_SetForceMusic( Boolean value )
 

告知音乐系统是否应该尝试进入/保持在播放音乐状态。【功能:设置强制音乐状态】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (89) 

 Sound_SetForceSilence( Boolean value )
 

告知音乐系统是否应该尝试进入/保持在静音状态。【功能:设置强制静音状态】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (74) 

 Sound_SetMinimumMusicCombatIntensity( Real combatIntensity, Real durationSeconds )
 

Set the target combat intensity to at least the value of value combatIntensity for a duration. 

Use a duration of -1 for an indefinite override. Use a duration of 0 to cancel the override.

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (59) 

 Sound_SetMusicIntensityScaling( Real scale )
 

设置音乐强度值的缩放倍数。【功能:设置音乐强度缩放】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (131) 

 Sound_SetMusicRaceCode( String raceCode )
 

设置种族RTPC以控制播放哪个种族的音乐。【功能:设置音乐种族代码】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (118) 

 Sound_SetScriptedMusicDuration( Real durationSecs )
 

阻止音乐系统在持续时间内自动切换层级或停止。【功能:设置脚本音乐持续时间】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (67) 

 Sound_StartMusicOutro( String outroEvent )
 

立即停止音乐并进入静音状态。【功能:开始音乐结尾】

  Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameSound.cpp] (111)