Dig¶
文档版本:1.21.50.25
[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"
}
priority
:priority
allow_dig_when_named
:boolean- If true, this behavior can run when this entity is named. Otherwise not.
digs_in_daylight
:boolean- Indicates that the actor should start digging when it sees daylight.
duration
:number- Goal duration in seconds.
idle_time
:number- The minimum idle time in seconds between the last detected disturbance to the start of digging.
suspicion_is_disturbance
:boolean- If true, finding new suspicious locations count as disturbances that may delay the start of this goal.
vibration_is_disturbance
:boolean- If true, vibrations count as disturbances that may delay the start of this goal.
on_start
:trigger- The event to run when the goal start
event
:string- The event to run when the conditions for this trigger are met.
filters
:filters- 一个过滤器组。The list of conditions for this trigger to execute.
target
:subject- The target of the event.
trigger:
array
{
object "<any array element>" : opt
{
string "event" : opt
filters "filters"
subject "target"
}
}
<any array element>
:object
<any array element>