Skip to content

conditions ​

Types ​

Conditions type ​

luau
type Conditions = {
	grounded: boolean?,
	swimming: boolean?,
	climbing: boolean?,
	seated: boolean?,
	dead: boolean?,
}

ConditionClass type ​

luau
type ConditionClass = typeof(Conditions)

Functions ​

resolve ​

luau
conditions.resolve(conditions: Conditions): types.State?

Every param is optional and nil means not known, not false, so a field you leave out just goes through to the next check, priority order is: Dead, Seated, Swimming, Climbing, Grounded, Airborne