Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
Droopy Jo

Need Help with Vehicle Spawning

Recommended Posts

Hello Everyone.

My partner and I have been trying to code our own server on DayZ for the last week. We are making good progress but absolutely can not get our vehicles to spawn in. We had them working for a minute and apparently messed something up because we can not get the Truck or Ada to spawn in again. Any help would be appreciated. Will post our coding for people to look at.

Ada

<event name="VehicleOffroadHatchback">
        <nominal>65</nominal>
        <min>50</min>
        <max>80</max>
        <lifetime>300</lifetime>
        <restock>0</restock>
        <saferadius>500</saferadius>
        <distanceradius>500</distanceradius>
        <cleanupradius>200</cleanupradius>
        <flags deletable="0" init_random="0" remove_damaged="1"/>
        <position>fixed</position>
        <limit>mixed</limit>
        <active>1</active>
        <children>
            <child lootmax="0" lootmin="0" max="30" min="20" type="OffroadHatchback"/>
            <child lootmax="0" lootmin="0" max="30" min="20" type="OffroadHatchback_Blue"/>
            <child lootmax="0" lootmin="0" max="30" min="10" type="OffroadHatchback_White"/>
        </children>
    </event>

 

Truck

 <event name="VehicleTruck01">
        <nominal>65</nominal>
        <min>50</min>
        <max>80</max>
        <lifetime>300</lifetime>
        <restock>0</restock>
        <saferadius>500</saferadius>
        <distanceradius>500</distanceradius>
        <cleanupradius>200</cleanupradius>
        <flags deletable="0" init_random="0" remove_damaged="1"/>
        <position>fixed</position>
        <limit>mixed</limit>
        <active>1</active>
        <children>
            <child lootmax="0" lootmin="0" max="30" min="20" type="Truck_01_Covered"/>
            <child lootmax="0" lootmin="0" max="30" min="20" type="Truck_01_Covered_Blue"/>
            <child lootmax="0" lootmin="0" max="30" min="20" type="Truck_01_Covered_Orange"/>
        </children>
    </event>

Share this post


Link to post
Share on other sites

Do you actually want a total of 130 cars and trucks?  Your cfgeventspawns.xml would have to have at least that many spawn points for that to work.  Vehicles are pretty unstable as well, so I doubt having that many of them on one server would work out too well.

Also, you have lifetime set to 300 here, which is only 5 minutes, so all vehicles will vanish from their spawn point after 5 minutes.

What do you have in types.xml for the children portions, like OffRoadHatchback for example, post that please.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×