Liking cljdoc? Tell your friends :D

cark.behavior-tree.node-defs.timer

The :timer node stays :running until a certain duration (in milliseconds) has elapsed. parameters:

  • :timer : an optional keyword or keyword returning context function. The name of this timer.
  • :duration : an integer or integer returning context function. The numebr of milliseconds this node stays :running before succeeding.

This node has two modes of operation.

  • named timer : when the :timer parameter is set, the :timer node will start counting time based on the last completed timer with the same name (or now if none were found)
  • free timer : The duration starts counting when the :timer node passes from :fresh to :running

Although they're not always necessary, named timers are the most precise as their combined durations do not depend on the tick invokation times.

The :timer node stays :running until a certain duration (in milliseconds) has elapsed.
parameters:
- :timer : an optional keyword or keyword returning context function. The name of this timer.
- :duration : an integer or integer returning context function. The numebr of milliseconds this node stays :running before succeeding.

This node has two modes of operation.
- named timer :
  when the :timer parameter is set, the :timer node will start counting time based on the last completed timer with the same name (or now if none were found)
- free timer :
  The duration starts counting when the :timer node passes from :fresh to :running

Although they're not always necessary, named timers are the most precise as their combined durations do not depend on the tick invokation times.
raw docstring

compile-nodeclj/s

(compile-node tree id tag params _)
source

logclj/s

(log val)
source

registerclj/s

(register)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close