I see in the sample file it says
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
<enterable>
<!-- cameraNode: This is the index or i3dMapping of the camera that is used when sleeping. -->
<!-- deactivateLightsOnSleep: When 'true' all vehicle lights will be turned off when sleeping starts. -->
<!-- deactivateEngineOnSleep: When 'true' vehicle engine will be turned off when sleeping starts. -->
<sleeperCab isSleeper="true" cameraNode="0>0|1" deactivateLightsOnSleep="true" deactivateEngineOnSleep="true"/>
</enterable>
</vehicle>
So I have copied the <enterable> tag and put within the <vehicle> tag of my mod, and a sleeping camera.
I also added "Enterable" as the specialization in the moddesc xml file, as I though that is what these instructions said, in the vehicleSleeperCab.xml file.
Code: Select all
<!-- Do not make changes to this XML file! Mods using the specialization 'Enterable' can add support directly in their own XML. See sdk folder for example mod xml. -->