Skip to main content

Condition_IsOccupyingParentSlot

Description

Checks whether BaseObject(GameObject) is currently occupying any Object-type slot on its parent entity. Slot type/name agnostic — returns true if any Object slot on the parent reports this object as occupier.

Used by HandCraft_Continue and similar interactions to dim the menu when the craft object has been detached from a workbench (e.g., moved to the floor in build mode), since build mode only allows craft objects to sit on a workbench or directly on the floor (= attached to site, no slot occupancy).

Parameters

ParameterDescription
BaseObjectThe GameObject whose parent slot occupancy is checked (Self or Target).
CompareTypeEqual (occupying any parent slot), NotEqual (not occupying any parent slot).