Condition_LastContactHour
Description
Checks the number of hours elapsed since the last interaction between BaseObject and the counterpart. Returns false if no interaction has ever occurred (LatestInteractionTick is 0).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Character whose last contact time is checked (Self or Target) |
| CompareType | Comparison operator (Equal, NotEqual, Less, Greater, LessOrEqual, GreaterOrEqual, InRange, OutRange) |
| F1 | Elapsed hours threshold or range minimum |
| F2 | Range maximum in hours (used with InRange or OutRange) |
Examples
| Description | BaseObject | Command | CompareType | F1 | F2 |
|---|---|---|---|---|---|
| Self has not contacted Target for more than 24 hours | Self | LastContactHour | Greater | 24 | |
| Self contacted Target within the last 8 hours | Self | LastContactHour | LessOrEqual | 8 | |
| Last contact between Self and Target was 12 to 48 hours ago | Self | LastContactHour | InRange | 12 | 48 |
| Target has not contacted Self for over 72 hours | Target | LastContactHour | Greater | 72 |
Back to Command FinderSearch and filter all 491 Script Condition documents