HELP - Custom spawn of buildings

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!
  • good morning all.


    I would like to repay my server boosters by giving them a water well near their base but i am having some very big issues. The water well will not appear.

    I have rotated the active status to 0 and 1 resetting each time, i have changed the location multiple times to make sure there is no interuptions from the map, There is more than 30mtrs between water well spawn point and any other objects, the area is flat also. The event name is a direct copy and paste from the cfgeventspawns.xml so this is set right. the coordinates in place currently below is not the coordinates of the base for the off chance someone else on server sees this message, :)

    the code being used in the event.xml is below


    <event name="StaticWaterWell02">

    <nominal>1</nominal>

    <min>0</min>

    <max>0</max>

    <lifetime>500</lifetime>

    <restock>0</restock>

    <saferadius>200</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="2" min="1" type="Land_Misc_Well_Pump_Yellow"/>

    </children>

    </event>




    <event name="StaticWaterWell02">

    <pos x="1234" z="1234" a="-1" />

    </Event>


    Thanks peoples, Muchly appreciated

  • Did you add it to the type file?


    <event name="StaticWaterWell02">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>3888000</lifetime>

    <restock>16</restock>

    <saferadius>0</saferadius>

    <distanceradius>0</distanceradius>

    <cleanupradius>100</cleanupradius>

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

    <position>fixed</position>

    <limit>child</limit>

    <active>1</active>

    <children>

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

    </children>

    </event>

  • I have mine set like shown below. Works fine for me, it just has to be outside the radius of base flag protection. Also, nothing for this spawn needs to be added to the "types.xml" file, as it is already in "mapgroupproto.xml".



    <event name="StaticPumpA">

    <pos x="5203.3" z="10606.8" a="-1" />

    </event>



    <event name="StaticPumpA">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>3888000</lifetime>

    <restock>0</restock>

    <saferadius>1</saferadius>

    <distanceradius>1</distanceradius>

    <cleanupradius>0</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="1" min="1" type="Land_Misc_Well_Pump_Yellow"/>

    </children>

    </event>