![]() |
VR-Forces 4.7 Class Documentation
|
The Display State Data example does the following
This example shows how to create a VR-Forces Back End extension plugin and install your own console commands that can be issued to print out various data to the console associated with objects in the system. This example currently adds the following console commands:
print-airbase <name> - prints airbase specific data. If the object is not an airbase a warning will be issued.
start-movement-mission <name> - Starts a move to waypoint mission using F-16C aircraft at the supplied air base. If the object is not an airbase a warning will be issued.
start-escort-mission <name> - Starts an escort mission using F-16C aircraft at the supplied air base. If the object is not an airbase a warning will be issued. You will need to add more F16 aircraft to the airbase in order to use this feature.
print-status <name | ALL> - prints various status (health, fuel, equipment, weapon stores). If the object is not an airbase a warning will be issued. Use ALL to print out all aggregates.
help-display - prints this list.
Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces application
This example demonstrates how to install your own derived object manager.
In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the plugin. Then launch VR-Forces for HLA1516 Evolved only. This example, while it will build in multiple protocols, will only work in the 1516 Evolved protocol. Once started you will need to load the developer_toolkit_examples\displayStateData\displayStateData.scnx in order to use this example.
The vrfSim console will print out information the plugin is loaded and what commands are available To witness the movement-mission and escort-mission you will need to run at 15X—takes time for the base to launch the assets. Open the air base's information/FlightStatus tab to see this. The plugin.cxx file contains all the code necessary to run this example