跳转至

Dig

文档版本:1.21.0.24

[EXPERIMENTAL BEHAVIOR] Activates the DIGGING actor flag during the specified duration. Currently only Warden can use the Dig goal

架构

dig:
{
  priority "priority"
  boolean "allow_dig_when_named" : opt
  boolean "digs_in_daylight" : opt
  number "duration" : opt
  number "idle_time" : opt
  boolean "suspicion_is_disturbance" : opt
  boolean "vibration_is_disturbance" : opt
  trigger "on_start"
}
prioritypriority
priority:
integer
allow_dig_when_namedboolean
If true, this behavior can run when this entity is named. Otherwise not.
digs_in_daylightboolean
Indicates that the actor should start digging when it sees daylight.
durationnumber
Goal duration in seconds.
idle_timenumber
The minimum idle time in seconds between the last detected disturbance to the start of digging.
suspicion_is_disturbanceboolean
If true, finding new suspicious locations count as disturbances that may delay the start of this goal.
vibration_is_disturbanceboolean
If true, vibrations count as disturbances that may delay the start of this goal.
on_starttrigger
The event to run when the goal start
trigger:
string
trigger:
{
  string "event" : opt
  filters "filters"
  subject "target"
}
eventstring
The event to run when the conditions for this trigger are met.
filtersfilters
一个过滤器组。The list of conditions for this trigger to execute.
targetsubject
The target of the event.
subject:
string
trigger:
array
{
  object "<any array element>" : opt
  {
    string "event" : opt
    filters "filters"
    subject "target"
  }
}
<any array element>object
<any array element>