Types for variables
This commit is contained in:
@@ -12,7 +12,7 @@ This is a high level device. It must be controlled using the high level device A
|
||||
Device name: `sound`
|
||||
|
||||
### Methods
|
||||
`playSound(name:string[,volume,pitch])` plays back the sound effect with the specified name.
|
||||
`playSound(name:string[,volume:float,pitch:float])` plays back the sound effect with the specified name.
|
||||
- `name` is the name of the effect to play.
|
||||
- `volume` is the volume at which to play the effect in the range from `0` to `1`, with `1` being the normal volume. Optional, defaulting to `1`.
|
||||
- `pitch` is the pitch at which to play the effect in the range from `0.5` to `2`, with `1` being the normal pitch. Optional, defaulting to `1`.
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
Название устройства: `sound`
|
||||
|
||||
### Методы
|
||||
`playSound(name:string[,volume,pitch])` проигрывает звуковой эффект с указанным именем.
|
||||
`playSound(name:string[,volume:float,pitch:float])` проигрывает звуковой эффект с указанным именем.
|
||||
- `name` - название эффекта для проигрывания.
|
||||
- `volume` - громкость проигрывания эффекта в диапазоне от `0` до `1`, где `1` - нормальная громкость. Опционально, по умолчанию `1`.
|
||||
- `pitch` - высота звука для проигрываемого эффекта в диапазоне от `0.5` до `2`, где `1` - нормальная высота. Опционально, по умолчанию `1`.
|
||||
|
||||
Reference in New Issue
Block a user