Skip to main content

Condition_HasCarriedObject

Description

Checks whether BaseObject currently carries an object.

By default (UseHand is Default), this condition checks both hands. If UseHand is Left, it checks only the left hand. If UseHand is Right, it checks only the right hand.

If S1 is provided, an additional carried-object detail check is applied using EB1CarriedObjectCheckType.

Parameters

ParameterDescription
BaseObjectCharacter used for carried-object check
CompareTypeType of comparison operation (Equal / NotEqual)
UseHandHand selector: Default (both), Left, or Right
S1Optional carried-object detail check type (EB1CarriedObjectCheckType)
- Target: carried entity is the current Target
- Object: carried entity is a game object
- Character: carried entity is a character (right hand only)
- HandOver: carried entity can be handed over

Notes

  • Returns false when BaseObject is not a valid character.
  • Returns false when posture data is not available.
  • If S1 is empty, only carry existence is checked.

Examples

DescriptionBaseObjectCommandCompareTypeUseHandS1
Checks whether self carries any object in either handSelfHasCarriedObjectEqualDefault
Checks whether self carries any object in left handSelfHasCarriedObjectEqualLeft
Checks whether the carried object is the current targetSelfHasCarriedObjectEqualDefaultTarget
Checks whether the carried object can be handed overSelfHasCarriedObjectEqualDefaultHandOver