![]() |
VR-Forces 5.0.1 Developer's Guide
|
The Add Task adds a new task command which will instruct an entity to retreat under certain circumstances
The Add Task example demonstrates the following:
The back-end part of the Add Task example adds a new task and controller which will receive and implement the new DtRetreatTask.
Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces 3D application.
This example also shows how to use this GUI as a scripted gui. Load the add task scenario from the developer toolkit scenarios to see an example of defining and using the retreat task via a scripted dialog and lus script.
This example demonstrates how to add a new kind of task (retreat).
In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the plugin.
To view the new behavior:
| DtTaskRetreatAction | menu item that is registered with the task menu from the plugin code. |
| DtTaskRetreatDialog | The widget that is used to select the retreat mechanism. |
| DtRetreatTask | The subclass of DtSimTask that is used to communicate the new task request. |