Doc: Update custom-tasks.rst

Mention extending different base types.
This commit is contained in:
Serhii Snitsaruk 2024-03-14 16:10:40 +01:00
parent cbd467f97f
commit 705f4d7415
No known key found for this signature in database
GPG Key ID: A965EF8799FFEC2D
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ Therefore, if you create a subdirectory named “motion_and_physics,” your
custom tasks in that directory will automatically be categorized under custom tasks in that directory will automatically be categorized under
“Motion And Physics.” “Motion And Physics.”
When creating custom tasks, **extend one of the following** base classes:
:ref:`BTAction<class_BTAction>`, :ref:`BTCondition<class_BTCondition>`, :ref:`BTDecorator<class_BTDecorator>`, :ref:`BTComposite<class_BTComposite>`.
More on task types you can read in the :ref:`introduction`.
**🛈 Note:** To help you write new tasks, you can add a script template to **🛈 Note:** To help you write new tasks, you can add a script template to
your project using “Misc → Create script template” menu option. your project using “Misc → Create script template” menu option.