Execute_VisitWithOccupyTarget
Description
Performs a cooperative visit action where the BaseObject character moves to a location associated with the other character, occupying the Target during the process. Once both characters arrive and wait at the destination, the script in S2 is executed.
Note
If BaseObject is Target, the roles of Self and Target are logically swapped within the S2 script. If the destination is far away, characters may be teleported to a nearby spawner, but guaranteed arrival time is not ensured.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character that initiates the visit action (Self or Target). Destination is based on the other character. |
| S1 | The destination type based on the other character (TargetCurrentLocation or TargetResidingSite). |
| S2 | The script to execute after both characters have arrived at the destination and are waiting there. |
Examples
| Description | BaseObject | Command | S1 | S2 |
|---|---|---|---|---|
| Self moves to Target's current location and runs a relationship script | Self | VisitWithOccupyTarget | TargetCurrentLocation | RelationshipIncreaseScript |
| Self moves to Target's residing site and runs an opportunity card script | Self | VisitWithOccupyTarget | TargetResidingSite | OpportunityCardScript |
| Target moves to Self's residing site and runs an opportunity card script | Target | VisitWithOccupyTarget | TargetResidingSite | OpportunityCardScript |
| Self moves to Target's current location and runs a howling script | Self | VisitWithOccupyTarget | TargetCurrentLocation | HowlingScript |