Jump to content

OzDeaDMeaT DCS API Question: Can we please have a way of addressing tree's / bushes or get more terrain types available for us to scan for.


OzDeaDMeaT

Recommended Posts

I am trying to automate unit placement on DCS maps and I am continually met with the same issue across all of the terrains. I can check for buildings, etc when placing a unit, but I can not check for trees or bushes. Here is a basic run down of what I am trying to do.

This is the location checklist executed every time a unit is going to be placed.

1. Is the terrain flat or near flat (i.e. not a cliff)
2. Is the location NOT in a building or object. (was hoping this element would work for trees etc)
3. Is the location surface land.SurfaceType.LAND

What I am getting is units NOT spawning in buildings (good thing) but units spawning all throughout forested areas, sometimes HEAVILY forested areas. Now there is an element of realism to be found by parking tanks under trees etc, but it does negatively affect the userbase playing the missions as they need to look for hours to find a single target.

What I am hoping for is for someone to tell me if there is a way at all to tell the game to not consider locations under tree cover as viable spawn locations.

Ideally there would be a way to make other terrain SurfaceTypes like Forest, Heavy Forest, swamp etc etc like terrain developers have access to while generating terrains (I have some professional experience in Terrain development) and making those terrain types available to us scripters and mission makers through the Mission Scripting Environment API so we can better distinguish where we want units to spawn.

Any help or clarification would be greatly appreciated and if there is no way to do this currently, I hope that we can start a discussion with ED to make the DCS API's more powerful for us scripters.

 

CPU: i9-12900K @ 4.9Ghz

M/B: MSI MEG z690 Ace

RAM: 128GB

Video Card: MSI RTX 4090 Suprim Liquid X

VR: Varjo Aero

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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