Creating an event

Nitrado now has an official Discord server to bring communities, friends and other gamers together!
Join the Nitrado Community Discord now and share your experiences and knowledge with others!

Click here to go to the Discord Server!
  • HI guys. I've been trying to create an event for seachest but it doesn't appear in game. I've watched tuts on youtube but didn't work for me. Could someone have a look to what I did wrong?


    cfgeventspawns.xml

    <event name="ItemSeaChest">

    <pos x="10207.77" z="2519.96" a="-1" />

    <pos x="10205.02" z="2536.11" a="-1" />

    <pos x="10282.95" z="2490.13" a="-1" />

    </event>


    cfgspawnabletypes.xml

    <type name="SeaChest">

    <cargo chance="1.00">

    <item name="Hammer" chance="0.50" />

    <item name="NailBox" chance="0.50" />

    </cargo>

    </type>


    event.xml


    <event name="ItemSeaChest">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>7200</lifetime>

    <restock>0</restock>

    <saferadius>1</saferadius>

    <distanceradius>20</distanceradius>

    <cleanupradius>100</cleanupradius>

    <flags deletable="0" init_random="0" remove_damaged="0"/>

    <position>fixed</position>

    <limit>mixed</limit>

    <active>1</active>

    <children>

    <child lootmax="0" lootmin="0" max="50" min="30" type="SeaChest"/>

    </children>

    </event>

  • try this


    cfgeventspawns.xml


    <event name="ItemSeaChest1">

    <pos x="10207.77" z="2519.96" a="113.000000" />

    <pos x="10205.02" z="2536.11" a="113.000000" />

    <pos x="10282.95" z="2490.13" a="113.000000" />

    </event>


    cfgspawnabletypes.xml


    <type name="ItemSeaChest1">

    <cargo chance="1.00">

    <item name="Hammer" chance="0.50" />

    <item name="NailBox" chance="0.50" />

    </cargo>

    </type>


    event.xml


    <event name="ItemSeaChest1">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>7200</lifetime>

    <restock>0</restock>

    <saferadius>0</saferadius>

    <distanceradius>0</distanceradius>

    <cleanupradius>200</cleanupradius>

    <flags deletable="0" init_random="0" remove_damaged="1"/>

    <position>fixed</position>

    <limit>child</limit>

    <active>1</active>

    <children>

    <child lootmax="0" lootmin="0" max="1" min="1" type="SeaChest"/>

    </children>

    </event>



  • I've had trouble with barrels too. Ive found it best to use one of the Truck variants after the rest of the attachments. And to place the snippets for

    Cfgeventspawns and Events at the very top of the file


    I dont know what it is with barrels but they seem to always give issues when spawning in items for an event or building

  • Hi guys. Would you mind to have a look on my xml files and let me know if i made a mistake on something. I've been trying to make seachest appear in my chosen location with hammer and nails in it! Also ive tried to make appear a truck but it didnt work out for me as well. No matter what i try to apear in a map nothing is working for me. Please help me out guys. Im trying to understand where did i go wrong. Cheers for any help!


    XML creations bellow


    cfgspawnabletypes.xml


    <type name="ItemSeaChest1">

    <cargo chance="1.00">

    <item name="Hammer" chance="1.00" />

    <item name="NailBox" chance="1.00" />

    </cargo>

    </type>


    cfgeventspawns.xml


    <event name="ItemSeaChest1">

    <pos x="10275.02" z="2498.98" a="113.000000" />

    </event>

    <event name="VehicleTruck02">

    <pos x="10228.03" z="2505.30" a="113.000000" />

    </event>


    events.xml


    <event name="ItemSeaChest1">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>7200</lifetime>

    <restock>0</restock>

    <saferadius>0</saferadius>

    <distanceradius>0</distanceradius>

    <cleanupradius>100</cleanupradius>

    <flags deletable="0" init_random="0" remove_damaged="1"/>

    <position>fixed</position>

    <limit>child</limit>

    <active>1</active>

    <children>

    <child lootmax="0" lootmin="0" max="1" min="1" type="SeaChest"/>

    </children>

    </event>



    <event name="VehicleTruck02">

    <nominal>2</nominal>

    <min>2</min>

    <max>2</max>

    <lifetime>1000</lifetime>

    <restock>10</restock>

    <saferadius>0</saferadius>

    <distanceradius>5</distanceradius>

    <cleanupradius>1</cleanupradius>

    <flags deletable="0" init_random="0" remove_damaged="1"/>

    <position>fixed</position>

    <limit>child</limit>

    <active>1</active>

    <children>

    <child lootmax="0" lootmin="0" max="1" min="1" type="Truck_01_Covered"/>

    </children>

    </event>