Друзья, всем привет.
Ситуация следующая, при добавлении автомобилей из мода, по координатам, он не появляется.
Если поставить его вручную, быстро исчезает. Мод CarsForAll by YK
Посмотрел гайды, изучил, не могу понять с чем связано.
Итак:
Чтобы не раздувать родные скрипты и проще было позже добавлять, изменять и переносить, я создал в папке
"dayzOffline.chernarusplus -> (#название сервера) папку" куда в дальнейшем закинул все *xml
events_blablabla.xml
blablabla_spawnabletypes.xml
blablabla_cfgeventspawns.xml
types_blablabla.xml
До этого, прописал заранее их в cfgeconomycore.xml
<ce folder="blabla">
<file name="types_blabla.xml" type="types" />
<file name="blabla_spawnabletypes.xml" type="spawnabletypes" />
<file name="events_blabla.xml" type="events" />
<file name="blabla_cfgeventspawns.xml" type="eventposdef" />
</ce>
Естественно закрыв </economycore>
Кусок кода с types:
<type name="YK_BTR_Green">
<nominal>1</nominal>
<lifetime>604800</lifetime>
<restock>0</restock>
<min>0</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"/>
</type>
<type name="YK_BTR_Doors_Driver_Green">
<nominal>0</nominal>
<lifetime>28800</lifetime>
<restock>0</restock>
<min>0</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="vehiclesparts"/>
<usage name="Industrial"/>
</type>
</type>
<type name="YK_BTR_Doors_coDriver_Green">
<nominal>0</nominal>
<lifetime>28800</lifetime>
<restock>0</restock>
<min>0</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="vehiclesparts"/>
<usage name="Industrial"/>
</type>
</type>
<type name="YK_BTR_Doors_cargo1_Green">
<nominal>0</nominal>
<lifetime>28800</lifetime>
<restock>0</restock>
<min>0</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="vehiclesparts"/>
<usage name="Industrial"/>
</type>
</type>
<type name="YK_BTR_Doors_cargo2_Green">
<nominal>0</nominal>
<lifetime>28800</lifetime>
<restock>0</restock>
<min>0</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="vehiclesparts"/>
<usage name="Industrial"/>
</type>
</type>
<type name="YK_BTR_Doors_cargo3_Green">
<nominal>0</nominal>
<lifetime>28800</lifetime>
<restock>0</restock>
<min>0</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="vehiclesparts"/>
<usage name="Industrial"/>
</type>
</type>
<type name="YK_BTR_Doors_hood1_Green">
<nominal>0</nominal>
<lifetime>28800</lifetime>
<restock>0</restock>
<min>0</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="vehiclesparts"/>
<usage name="Industrial"/>
</type>
</type>
<type name="YK_BTR_Doors_hood2_Green">
<nominal>0</nominal>
<lifetime>28800</lifetime>
<restock>0</restock>
<min>0</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="vehiclesparts"/>
<usage name="Industrial"/>
</type>
</type>
<type name="YK_BTR_Wheel">
<nominal>0</nominal>
<lifetime>28800</lifetime>
<restock>0</restock>
<min>0</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="vehiclesparts"/>
<usage name="Industrial"/>
</type>
Кусок с events:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<events>
<event name="VehicleBTR_Green">
<nominal>1</nominal>
<min>1</min>
<max>1</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="1" min="1" type="YK_BTR_Green"/>
</children>
</event>
</events>
Кусок с pawnabletypes
<type name="YK_BTR_Green">
<attachments chance="1.00">
<item name="YK_BTR_Wheel" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Wheel" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Wheel" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Wheel" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Wheel" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Wheel" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Wheel" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Wheel" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="HeadlightH7" chance="0.40" />
</attachments>
<attachments chance="1.00">
<item name="HeadlightH7" chance="0.40" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Doors_hood2_Green" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Doors_hood1_Green" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Doors_cargo3_Green" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Doors_cargo2_Green" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Doors_cargo1_Green" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Doors_coDriver_Green" chance="1.00" />
</attachments>
<attachments chance="1.00">
<item name="YK_BTR_Doors_Driver_Green" chance="1.00" />
</attachments>
</type>
Кусок с cfgeventspawns:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<eventposdef>
<event name="VehicleBTR_Green">
<pos x="1271" z="6309" a="0" />
</event>
</eventposdef>
(Как делать ориентацию предмета через а="" я так и не понял, изучил форум, так же не нашел ответа на вопрос, как правильно ее определять. Если подскажите, буду благодарен)
Собственно, задача, чтобы автомобиль появлялся один на карте.
Не больше одного авто данного типа на карте.
Помогите, пожалуйста. Я не хотел кого-то отвлекать и пишу сюда, как последняя инстанция. Спасибо