Creating a new car XML
In this recipe, we will show you how to build a new script for CryENGINE 3 to recognize your car model as a vehicle entity. For this recipe, you must have some basic knowledge in XML formatting.
Getting ready
Open
DefaultVehicle.xml
in the XML editor of your choice (Notepad, Notepad++, UltraEdit, and so on). This XML will be used as the basic template to construct our new vehicle XML.
Note
DefaultVehicle.xml
is found at the following location: MyGameFolder\Scripts\Entities\Vehicles\Implementations\Xml
.
Open the MyVehicle.max
scene made from the previous recipe to use as a reference for the parts section within this recipe.
How to do it...
Basic Properties:
First, we will need to rename the filename to what the vehicle's name would be.
Delete filename = Objects/Default.cgf.
Rename name = DefaultVehicle to name = MyVehicle.
Add actionMap = landvehicle to the end of the cell.
Save the file as
MyVehicle.XML
.Your first line should now look like the following:
Note
Downloading the...