Jump to content

Recommended Posts

Posted

Can a script be a solution to detect an aircraft over water?

 

What would this script look like? :-)

 

TIA!

 

WC

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

Posted

local pos = Unit.getByName('testUnit'):getPosition().p

if land.getSurfaceType({x = pos.x, y = pos.z}) == 3 then

-- object is above water

end

 

 

 

http://wiki.hoggit.us/view/DCS_func_getSurfaceType

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

Does a lake have a different value than the ocean? ie. can't place ships on a lake... how is that determined?

 

WC

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

Posted

my bad, CrC, for not looking at the link. Thanks for that.

 

WC

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

  • Recently Browsing   0 members

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