Cattle and Crops: Mission Documentation


command

  • command executes an action after an event. The event can be, e.g., the start or end of a mission, or the fulfillment of a condition.
  • commands can be defined in mission/start, mission/stop or directly in a condition.
  • commands always have to be within a commands parent group.
  • Each command can have its own distinct ID (id) with which it can be referenced from other commands or conditions.
  • All commands have a type attribute that defines the type of the command.

General attributes

  • executeOnlyWhenSkipped defines if this command should only be executed when the preceding condition has been skipped. Is only applicable to stop condition commands.

    TODO was wenn die Condition regulär erreicht wurde?

  • executeWhenCanceled defines if this command should be executed when the mission is cancelled.
  • test defines that the command is only executed when the mission is started with the testMission console command.
Attribute Type Value Description
executeOnlyWhenSkipped
Optional
boolean true | false true: Command is executed when the condition is skipped. false: Command is executed when the condition is not skipped.

Default: false
executeWhenCanceled
Optional
boolean true | false true: Command is executed when the mission is cancelled.
false: Command is not executed when the mission is cancelled.
Default: true
test
Optional
boolean true | false true: Command is only executed when the mission is started with the testMission console command.
Default: false

Example

<commands>
    <command type="spawnInstance" id="1034" world="path/to/world" executeOnlyWhenSkipped="true" executeWhenCanceled="false" />
</commands>

results matching ""

    No results matching ""