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  
Lucas Films

Spawned object will disappear after server restart

Recommended Posts

I placed some objects like house, tower, military tent with code in int.c

GetGame().CreateObject("NAME", "532.854004 421.858826 11084.019531").SetOrientation("70.050789 -0.241511 0.006311");

And yes it surely once appeared, but after server restart they're all gone.

How to keep this?

thanks

Share this post


Link to post
Share on other sites

Economy.xml

<building init="0" load="0" respawn="0" save="0"/> - change this line. I'm not entirely sure, but I think you need to at least change save="0" to save ="1" - that will turn the persistency on for them... However, be warned. It's so broken. Tents are broken for definite!

Share this post


Link to post
Share on other sites

thx for replying.

But I have already changed it to 1...

My one is

<building init="1" load="1" respawn="1" save="1"/>

 

Share this post


Link to post
Share on other sites

they have to stay in your init.c file. When you remove them, they will completely disappear from the world. This method is not map modifying, it's simply spawning new buildings to the world when the server loads.

Share this post


Link to post
Share on other sites

Ok then can I edit actual map with editor?

I extracted Chernarus.wrp from .pbo and about to convert to Chernarus.pew but I couldn't.

Share this post


Link to post
Share on other sites

The map editor for the current map format isn't released yet.

They said it will be easy to convert Arma3 community made maps, but I am yet to see an actual modified map file anywhere.

Share this post


Link to post
Share on other sites

I don't know why, but after some test and try, now I am able to keep objects remain on server.

thank you all!

Share this post


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

×