Jump to content

Recommended Posts

Posted

Trying to write a mission based on WWII era (P-51 vs Dora) I realized that Mission Editor automatically add lots of objects (car, tank and so on) not realted to my desired scenario.

Is there any way to get a completely empty terrain?

Posted

I don't know of a way to start with an empty terrain, but if you want to get there, the basic idea is to explode anything you don't want.

 

This thread may be of interest to you: Setting a map object to dead

 

You could take the code I posted near the end, make the radius huge and just explode everything you can find :P

 

However, that will probably also delete objects you'd want to keep (such as buildings), but you may be able to check the kind of object to filter those out.

Posted

Check also the traffic settings... if you' re seeing moving cars and trucks. But if you see tanks.. well, autogen traffic can't add combat vehicles AFAIK. So those may be already there in the mission file, and you should be able to simply delete them by editor or by Ian's script.

 

Instead, Object.destroy() won't destro map object but only editor added ones due to a bug that Grimes stated here: http://forums.eagle.ru/showpost.php?p=2210208&postcount=21. And AFAIK editor doesn't add anything static that is not map objects :(.

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Github for latest version: https://github.com/Chromium18/DSMC

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...