mission_task_transport_cargo_faster¶
Source: base/tealdef/mission/tasks/transport_cargo/mission_task_transport_cargo_faster.d.tl
Notes
Delivery race against a simulated adversary within a time limit.
MissionTaskTransportCargoFaster¶
record global base/tealdef/mission/tasks/transport_cargo/mission_task_transport_cargo_faster.d.tl:3
global record MissionTaskTransportCargoFaster is MissionInterface.TaskScript<MissionTaskTransportCargoFaster.State, MissionTaskTransportCargoFaster.Params>
Load: local transport_cargo_faster = ug_require "::/mission/tasks/transport_cargo/transport_cargo_faster.tl"
Notes
Task (transport_cargo_faster) in which the player must deliver minCount cargo to a target before a simulated adversary, whose count grows linearly to minCount over the time limit. Completes when either side reaches it.
MissionTaskTransportCargoFaster.Params¶
record base/tealdef/mission/tasks/transport_cargo/mission_task_transport_cargo_faster.d.tl:4
record Params
Notes
Params of the task.
Used in the base game: 18 times in 4 files
base/content/mission/mission/tasks/transport_cargo/transport_cargo_faster.tl:7
mods/release/urbangames_campaign_mission_06/content/mission/mission/mission_story.tl:1341
mods/release/urbangames_campaign_mission_05/content/mission/mission/mission_story.tl:1056
mods/release/urbangames_campaign_mission_04/content/mission/mission/mission_story.tl:637
Fields
| Name | Type | Description |
|---|---|---|
cargoTypeRes |
string |
Cargo type resource to count. |
target |
Engine.Entity |
Delivery target. |
minCount |
integer |
Amount to deliver. |
simTimeMinutesToComplete |
integer |
Time in simulation minutes in which the adversary reaches minCount (required). |
debugInfoDeliveryRate |
boolean |
Logs the adversary's delivery rate per year. |
countdown |
boolean |
Shows the remaining time instead of the adversary's counter. |
Functions
getMinCount(readOnlyApi : MissionInterface.MissionTaskReadOnlyApi) : integer base/tealdef/mission/tasks/transport_cargo/mission_task_transport_cargo_faster.d.tl:9
Notes
Returns the amount to deliver when minCount is not set.
| Parameter | Type | Description |
|---|---|---|
readOnlyApi |
MissionInterface.MissionTaskReadOnlyApi |
Read-only mission API. |
Returns integer: Amount to deliver.
MissionTaskTransportCargoFaster.State¶
record base/tealdef/mission/tasks/transport_cargo/mission_task_transport_cargo_faster.d.tl:17
record State
Notes
State of the task.
Used in the base game: 15 times in 3 files
base/content/mission/mission/tasks/transport_cargo/transport_cargo_faster.tl:6
mods/release/urbangames_campaign_mission_05/content/mission/mission/mission_story.tl:1084
local astridCount = (getTaskState("transport_oil") as MissionInterface.TaskState<MissionTaskTransportCargoFaster.State, MissionTaskTransportCargoFaster.Params>)
mods/release/urbangames_campaign_mission_04/content/mission/mission/mission_story.tl:676
Fields
| Name | Type | Description |
|---|---|---|
playerCount |
integer |
Amount the player delivered. |
minCount |
integer |
Amount to deliver. |
currentSimTimeMs |
integer |
Game time (ms) of the last update. |
initialSimTimeMs |
integer |
Game time (ms) at spawn. |
endSimTimeMs |
integer |
Game time (ms) at which the adversary reaches minCount. |
adversaryCount |
integer |
Amount the simulated adversary delivered. |
cargoTypeId |
CargoTypeId |
Id of the cargo type. |