点击图片可看到更多讯息
开始使用于
- 游戏:
- Operation Flashpoint: Resistance
- 版本:
- 1.75
描述
- 描述:
- Unit will say given sound.
When the Unit is a Person, it will also perform corresponding lipsync effect provided an appropriate .lip file has been created for this sound.
A unit that has been killed or does not exist will not say anything.
Compare this with playSound which will always play a sound at the location of the player.
If the camera is not within given range, title is not shown and the sound will not be heard.
Sound is defined in CfgSound of the Description.ext.
NOTE: say will mimic either say2D or say3D depending on whether it is there executed in a cut scene or in a game scene.
基本句法
- 句法:
- from say sound
- 参数:
- from: Object - origin of the sound
- sound: String - classname of the sound to be played. Defined in CfgSounds including Description.ext
- 返回值:
- Nothing
替代句法
- 句法:
- from say [sound, maxTitlesDistance, speed]
- 参数:
- from: Object - origin of the sound
- [sound, maxTitlesDistance, speed]: Array
- sound: String - classname of the sound to be played. Defined in CfgSounds including Description.ext
- maxTitlesDistance: Number - max distance at which the sound can be heard. Default: 100 m.
- speed (Optional): Number - pitch of the sound. Default: 1.
- 返回值:
- Nothing
替代句法2
- 句法:
- [from, to] say sound
- 参数:
- [from, to]: Array
- from: Object - origin of the sound
- to: Object - target
- sound: String - classname of the sound to be played. Defined in CfgSounds including Description.ext
- 返回值:
- Nothing
替代句法3
- 句法:
- [from, to] say [sound, maxTitlesDistance, speed]
- 参数:
- [from, to]: Array
- from: Object - origin of the sound
- to: Object - target
- [sound, maxTitlesDistance, speed]: Array
- sound: String - classname of the sound to be played. Defined in CfgSounds including Description.ext
- maxTitlesDistance: Number - max distance at which the sound can be heard. Default: 100 m.
- speed (Optional): Number - pitch of the sound. Default: 1.
- 返回值:
- Nothing
范例
额外资讯
- 多人游戏:
- -
- 也可以看看:
- say3Dsay2DplaySoundcreateSoundSource
注意事项
Notes
- Posted on 7 March 2013
- Rocket
- Say will occur in 3D when the player is active, during cutscenes it will not. Use say3D for cutscenes.