Skip to main content

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

ParameterDescription
BaseObjectThe character that initiates the visit action (Self or Target). Destination is based on the other character.
S1The destination type based on the other character (TargetCurrentLocation or TargetResidingSite).
S2The script to execute after both characters have arrived at the destination and are waiting there.

Examples

DescriptionBaseObjectCommandS1S2
Self moves to Target's current location and runs a relationship scriptSelfVisitWithOccupyTargetTargetCurrentLocationRelationshipIncreaseScript
Self moves to Target's residing site and runs an opportunity card scriptSelfVisitWithOccupyTargetTargetResidingSiteOpportunityCardScript
Target moves to Self's residing site and runs an opportunity card scriptTargetVisitWithOccupyTargetTargetResidingSiteOpportunityCardScript
Self moves to Target's current location and runs a howling scriptSelfVisitWithOccupyTargetTargetCurrentLocationHowlingScript