Nebula
Worker

CargoPolicy

What happens to the entities riding in a carrier's container when the carrier is despawned with NebulaWorker.Despawn (docs/frame-bodies.md D5).

generated from the sources
public enum CargoPolicy

What happens to the entities riding in a carrier's container when the carrier is despawned with NebulaWorker.Despawn (docs/frame-bodies.md D5).

Members

NameValueDescription
SetDownPut every rider down in the container the carrier was in, at the pose it has now. What NebulaWorker.Despawn always does.
StowKeep the persistent cargo aboard: every rider this worker is authoritative for that has a PersistentEntity, no owning client, and sits directly in the box of the carrier or of another stowed rider is checkpointed aboard and despawned, deepest first, so its record names its carrier and it comes back when the carrier is restored. Everything else aboard (a player's pawn, a transient entity) is put down as with SetDown. Needs a persistent carrier despawned with keepPersisted.

On this page