Condition_HasObjectTag
Description
Checks whether an object has the specified object tag based on the given condition. By default, this command checks the object tag on the BaseObject. If S2 is set to CheckParent, the condition checks the object tag on the parent of the BaseObject.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The object used as the base for the object tag check |
| CompareType | Type of comparison operation (Equal / NotEqual) |
| S1 | Object tag to check |
| S2 | Optional check mode. If set to CheckParent, checks the parent |
| object of the BaseObject |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Checks whether the base object is a computer | Self | HasObjectTag | Equal | Create_Computer | |
| Checks whether the parent of the self object is a FleaMarketStall | Self | HasObjectTag | Equal | FleaMarketStall | CheckParent |
Back to Command FinderSearch and filter all 491 Script Condition documents