LUADOC - Farming Simulator 22

Script v1_7_1_0

Engine v1_7_1_0

Foundation Reference

playSample

Description
Play sample object
Definition
playSample(integer sampleId, integer loops, float volume, float offset, float delay, integer playAfterSample)
Arguments
integersampleIdsampleId
integerloopsloops
floatvolumevolume
floatoffsetoffset to start playing [ms]
floatdelaydelay until to start playing [ms]
integerplayAfterSampleoptionally wait until playAfterSample has finished playing