Skip to main content

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

ParameterDescription
BaseObjectTarget game object to check for slot occupancy
CompareTypeEqual / NotEqual
S1ObjectSlotId 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

DescriptionBaseObjectCommandCompareTypeS1S2
Check if slot has any objectSelfHasObjectInTargetObjectSlotEqualSlot_001None
Check if slot has object with tagSelfHasObjectInTargetObjectSlotEqualSlot_001Tag_Food
Check if slot is emptySelfHasObjectInTargetObjectSlotNotEqualSlot_001None