Skip to main content

Condition_HasObjectTagWithAvailableSlotRatio

Description

Checks whether any object with the specified ObjectTag in the BaseObject's current site has an available slot ratio greater than or equal to the specified minimum threshold. If no objects with the tag exist, the result depends on CompareType (NotEqual returns true).

Parameters

ParameterDescription
BaseObjectThe actor whose current site is searched for objects with the given tag.
CompareTypeType of comparison operation (Equal or NotEqual).
S1ObjectTag used to find relevant objects in the site.
S2ObjectSlotId to check availability on each matching object.
F1Minimum available slot ratio threshold (0.0 to 1.0; e.g., 0.5 means at least 50% available).

Examples

DescriptionBaseObjectCommandCompareTypeS1S2F1
Check if any "Bed" object in Self's site has at least 50% of its slots availableSelfHasObjectTagWithAvailableSlotRatioEqualBedSleepSlot0.5
Check if no "Seat" object in Self's site has any slots at least 100% availableSelfHasObjectTagWithAvailableSlotRatioNotEqualSeatSitSlot1.0
Check if any "Shower" in Target's site has at least 1 slot available (>=0.0 ratio)TargetHasObjectTagWithAvailableSlotRatioEqualShowerUseSlot0.0