Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Information

When working with states, the state class is used to access and modify state information.
It can’t be used any other way.

Functions

state:GetDurationLimit()
state:GetDuration()
state:SetDurationLimit( time )
state:SetUpdateInterval( interval )
state:Exit()

Example

function drill:OnDrillStartEnter( state )
	state:SetDurationLimit( 0.75 )
end