We are going to add too entities: one tank and one stinger.
Let's add the tank in the middle of the zoomed area (previous
part):
For the tank, we will use the default entity which comes with some CIGI components ready to be customized.
Once instanciated, rename it as: m1a1
Select , open the CIGI group (double click to open) then open the CigiEntity Data Model:
We will define the (Click to define!) and search in the list for the M1A1 tank.
To facilitate the search in the entity database (imported from VBS-IG definition file), let's put m1a1 in the Filter and click .
Then, open the us::army::m1a1 and select us_army_m1a1_d_ap_x :
Now let's add the Articulated Part.
Right-click on the CIGI Group background and select the CigiArtPart model:
and set it this way:
Then the VBS_MainGun component which will use the CigiArtPart above and provides data to the CIGI packets:
Now, set it up this way:
Time to launch VBS-IG from the Studio:
When IG is loaded and in standby mode, compile the vsTASKER database and run it.
Click on the m1a1 entity and use the left gamepad stick to turn the camera around (left and right triggers to zoom in and out).
|
If the camera FoV is not correct, you can reset it with the thumb pad up selector.
|
Now, let's add the Stinger from the Catalog list:
and let's give it a simple plan to move from one area behind the hill to the other side so that it becomes visible to the tank:
Compile and check again the simulation: