Api > AudioSource > SetScheduledEndTime()
AudioSource.SetScheduledEndTime(number time)⚓︎
Changes the time at which a sound that has already been scheduled to play will end. Notice that depending on the timing not all rescheduling requests can be fulfilled.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
time | number | Time in seconds. |
Usage⚓︎
---@type AudioSource
local audiosource;
---@type number
local time;
audiosource.SetScheduledEndTime(time)