component.isStopping()
The component.isStopping() function can be used to return whether the component is in a stopping state or not.
It will return true for stopping state, false for live.
It’s often used with if statements to conditionally execute specific actions. For example, Making components interruptible.
if component.isStopping() then
-- execute actions that I want to occur when the component stops
end
Â
Â
Â