Condition_HasObjectInTargetObjectSlot
Description
Script condition function to check if a specific object slot contains an object. Verifies whether the target game object (BaseObject) has an object occupying the specified slot (S1). Optionally filters by object tag (S2) to check if the occupying object has a specific tag.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Target game object to check for slot occupancy |
| CompareType | Equal / NotEqual |
| S1 | ObjectSlotId to check |
| S2 | (Optional) ObjectTagId to filter occupying object. |
| If None, checks only for slot occupancy. | |
| If specified, checks if occupying object has this tag. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Check if slot has any object | Self | HasObjectInTargetObjectSlot | Equal | Slot_001 | None |
| Check if slot has object with tag | Self | HasObjectInTargetObjectSlot | Equal | Slot_001 | Tag_Food |
| Check if slot is empty | Self | HasObjectInTargetObjectSlot | NotEqual | Slot_001 | None |
Back to Command FinderSearch and filter all 491 Script Condition documents