Dynamic Node <dyn>¶
This node is considered composite, however when you define it, you should not attach any children to it.
Instead, you should define the reference to entity that is root of behavior subtree within blackboard under any key and pass that key as a from attribute to this node.
This node would then attach and run the subtree that is defined on referred entity.
Attributes¶
<s:dyn> node can receive the following attributes:
from(required) - target entity to move to, value is expected to be a blackboard key that holds entity reference
Example¶
Following would use <btClosest> to identify closest entity with btDoor tag within 500 units and then use <dyn> to enter the building by running the behavior subtree defined on that entity: