Jump to content

Detect a/c Feet Wet ?


Wrecking Crew

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

According to the wiki link Grimes sent, lakes must be of shallow_water type instead of water. So normally, you cannot place boats on lake. The trick you might know though is to place the boat you want on the sea then copy paste it anywhere on the map, including lakes or land. Et voila.

It also works to place farps on any type of non flat surface.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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