跳转至

Timer Flag

文档版本:1.21.0.24

Fires an event when this behavior starts, then waits for a duration before stopping. When stopping due to that timeout or due to being interrupted by another behavior, fires another event. query.timer_flag_ will return 1.0 on both the client and server when this behavior is running, and 0.0 otherwise.

架构

timer_flag:
{
  priority "priority"
  number "cooldown_range" : opt
  vector_of_2_items "cooldown_range"
  number "duration_range" : opt
  vector_of_2_items "duration_range"
  array "control_flags" : opt
  {
    string "<any array element>" : opt
  }
  trigger "on_end"
  trigger "on_start"
}
prioritypriority
priority:
integer
cooldown_rangenumber
Goal cooldown range in seconds.
cooldown_rangevector_of_2_items
Goal cooldown range in seconds.
vector_of_2_items:
array
{
  number "0..0" : opt
  number "1..1" : opt
}
0..0number
The X component.
1..1number
The Y component.
duration_rangenumber
Goal duration range in seconds.
duration_rangevector_of_2_items
Goal duration range in seconds.
control_flagsarray
UNDOCUMENTED
control_flags
<any array element>string
on_endtrigger
Event to run when the goal ends.
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>
on_starttrigger
Event to run when the goal starts.