createDerelict

open fun createDerelict(variantId: String, condition: ShipCondition, discoverable: Boolean, discoveryXp: Integer, recoverable: Boolean, orbitCenter: SectorEntityToken, orbitStartAngle: Float, orbitRadius: Float, orbitDays: Float, isRecoverable: Boolean): SectorEntityToken

Creates a derelict ship at the desired emplacement.

Parameters

variantId

Spawned ship variant

condition

Condition of the derelict. Better conditions means fewer D-mods but also more weapons from the variant

discoverable

Awards XP when found

discoveryXp

XP awarded when found (<0 to use the default)

recoverable

Can be salvaged as long as the hull it's possible for the player to salvage this hull (eg Automated ships still require the skill).

orbitCenter

Entity orbited

orbitStartAngle

Orbit starting angle

orbitRadius

Orbit radius

orbitDays

Orbit period

isRecoverable

Whether the derelict can be recovered by the player


open fun createDerelict(variantId: String, condition: ShipCondition, discoverable: Boolean, discoveryXp: Integer, recoverable: Boolean, orbitCenter: SectorEntityToken, orbitStartAngle: Float, orbitRadius: Float, orbitDays: Float): SectorEntityToken

Creates a derelict ship at the desired emplacement.

Return

Parameters

variantId

Spawned ship variant

condition

Condition of the derelict. Better conditions means fewer D-mods but also more weapons from the variant

discoverable

Awards XP when found

discoveryXp

XP awarded when found (<0 to use the default)

recoverable

Can be salvaged as long as the hull it's possible for the player to salvage this hull (eg Automated ships still require the skill).

orbitCenter

Entity orbited

orbitStartAngle

Orbit starting angle

orbitRadius

Orbit radius

orbitDays

Orbit period