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
| Parameter | Description |
|---|---|
| BaseObject | The actor whose current site is searched for objects with the given tag. |
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | ObjectTag used to find relevant objects in the site. |
| S2 | ObjectSlotId to check availability on each matching object. |
| F1 | Minimum available slot ratio threshold (0.0 to 1.0; e.g., 0.5 means at least 50% available). |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 | F1 |
|---|---|---|---|---|---|---|
| Check if any "Bed" object in Self's site has at least 50% of its slots available | Self | HasObjectTagWithAvailableSlotRatio | Equal | Bed | SleepSlot | 0.5 |
| Check if no "Seat" object in Self's site has any slots at least 100% available | Self | HasObjectTagWithAvailableSlotRatio | NotEqual | Seat | SitSlot | 1.0 |
| Check if any "Shower" in Target's site has at least 1 slot available (>=0.0 ratio) | Target | HasObjectTagWithAvailableSlotRatio | Equal | Shower | UseSlot | 0.0 |
Back to Command FinderSearch and filter all 491 Script Condition documents