Trouble with Sea Chest custom spawn

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!
  • Hey there,


    So I am attempting to do a custom Sea Chest spawn with some loot goodies inside. I haven't had luck with getting a spawn location to work. Oddly, we have discovered seachests in other locations populated with the custom loot, but never in the place we actually want it to be. I'm going to add my code changes if anyone would mind proofreading them.


    Events.xml


    <event name="itemseachest1">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>16000</lifetime>

    <restock>1</restock>

    <saferadius>0</saferadius>

    <distanceradius>0</distanceradius>

    <cleanupradius>0</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="100" min="100" type="SeaChest"/>

    </children>


    CFGeventspawns.xml


    <event name="ItemSEACHEST1">

    <pos x="2340" z="5038"" a="191.3" />


    Types.xml


    <type name="SeaChest">

    <nominal>25</nominal>

    <lifetime>300</lifetime>

    <restock>0</restock>

    <min>25</min>

    <quantmin>-1</quantmin>

    <quantmax>-1</quantmax>

    <cost>100</cost>

    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />

    <category name="tools" />

    <usage name="Industrial" />

    <usage name="Farm" />

    <usage name="Coast" />


    CFGspawnabletypes.xml


    <type name="SeaChest">

    <cargo chance="1">

    <item name="BandageDressing" />

    </cargo>

    <cargo chance="1">

    <item name="BandageDressing" />

    </cargo>

    <cargo chance="1">

    <item name="Mag_AK74_45Rnd" />

    </cargo>

    <cargo chance="1">

    <item name="Mag_AK74_45Rnd" />

    </cargo>

    <cargo chance="1">

    <item name="SKS" />

    </cargo>

    <cargo chance="1">

    <item name="TetracyclineAntibiotics" />

    </cargo>


    *That's all I'll copy from the spawnable types, you get the idea and that part seems to be working


    Any advice would be much appreciated, thank you!

  • so you changed the names of the seachest in events and eventspawns to ItemSeaChest1?


    try these


    <event name="ItemSeaChest1">

    <pos x="1244.3" z="14552.4" a="-1" />

    </event>




    <event name="ItemSeaChest1">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>16000</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 noticed you missed the </event> tag on both codes