Skip to content

Behavior: CargoShip

Lucas Massey edited this page Jan 19, 2021 · 4 revisions

Behavior Description: The Cargo Ship behavior is designed to be an alternative from using the default Cargo Ship movement types (no-dampener drifting in space or Keen autopilot in gravity). The behavior will use RivalAI Autopilot to drive the ship to the Despawn Coordinates that are generated by the Modular Encounters Spawner. If no Despawn Coordinates were generated by the Spawner, then it will generate its own.

In addition to this, the behavior is also able to travel to other waypoints before traveling to its Despawn coordinates. Using Command Profiles with the Trigger / Action system can allow this behavior to receive waypoints generated by other encounters, allowing for events where a ship may fly close to another encounter or station (simulating supply drop off, etc).

It is recommended to use this behavior with an Autopilot Profile that uses the FlyLevelWithGravity tag. Core System Tag Defaults:

System: Tag: Value:
AutoPilot Default Primary Profile Click Here
Despawn UseNoTargetTimer false

The CargoShip behavior type also has some custom Trigger Types as well. Below they are described:

Type: Description:
BehaviorTriggerA This trigger is activated when the CargoShip arrives at a non-despawn waypoint.
BehaviorTriggerB This trigger is activated when the CargoShip leaves a waypoint.
BehaviorTriggerC This trigger is activated when the CargoShip switches from a despawn waypoint to a non-despawn waypoint.
BehaviorTriggerD This trigger is activated when the CargoShip switches from a non-despawn waypoint to a despawn waypoint.