Condition_EnteredSiteType
Description
Checks whether the SiteType of the site at the entity's current location matches the specified value. When CompareType is Equal, the site type at the test location must match exactly. When CompareType is NotEqual, the condition passes if the entity is on a site of a different type, or if the entity is not on any site at all.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity whose location is used to find the entered site (Self or Target). |
| CompareType | Equal: site type must match; NotEqual: site type differs or not on any site. |
| S1 | SiteType to compare (EB1SiteType enum name, e.g., Residence, Business). |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Checks if Self is currently standing on a Residence site | Self | EnteredSiteType | Equal | Residence |
| Checks if Target is currently standing on a Business site | Target | EnteredSiteType | Equal | Business |
| Checks if Self is NOT on a Residence site | Self | EnteredSiteType | NotEqual | Residence |
| Checks if the target impact point is on a Park site | Target | EnteredSiteType | Equal | Park |
Back to Command FinderSearch and filter all 491 Script Condition documents