Condition_ObjectCreatePurpose
Description
Checks the creation purpose (EB1ObjectCreatePurpose) of the specified BaseObject. The creation purpose is compared against the value in S1 using CompareType.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The game object whose creation purpose will be checked |
| CompareType | Supported compare types: Equal, NotEqual |
| S1 | EB1ObjectCreatePurpose value to compare against |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if object was created for crafting | Self | ObjectCreatePurpose | Equal | Crafted |
| Check if object was not created for purchase | Target | ObjectCreatePurpose | NotEqual | Bought |
Back to Command FinderSearch and filter all 491 Script Condition documents