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
| Parameter | Description |
|---|---|
| BaseObject | Character used for carried-object check |
| CompareType | Type of comparison operation (Equal / NotEqual) |
| UseHand | Hand selector: Default (both), Left, or Right |
| S1 | Optional 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
S1is empty, only carry existence is checked.
Examples
| Description | BaseObject | Command | CompareType | UseHand | S1 |
|---|---|---|---|---|---|
| Checks whether self carries any object in either hand | Self | HasCarriedObject | Equal | Default | |
| Checks whether self carries any object in left hand | Self | HasCarriedObject | Equal | Left | |
| Checks whether the carried object is the current target | Self | HasCarriedObject | Equal | Default | Target |
| Checks whether the carried object can be handed over | Self | HasCarriedObject | Equal | Default | HandOver |
Back to Command FinderSearch and filter all 491 Script Condition documents