- Documentation
- Client functions
- setSoundPosition
Function
setSoundPosition
Seeks the sound to the given second.
Syntax
bool setSoundPosition(sound theSound, float pos)Arguments
theSoundsound- The sound.
posfloat- Seconds from the start.
Returns
true on success.
Example
bindKey("arrow_r", "down", function()
setSoundPosition(music, getSoundPosition(music) + 10)
end)