yes and no.
the code for the wrecks usually generates the ship wrecks on the water surface. However... you can use
- Code: Select all
Warp( unit, location, [orientation] )
to move the wreck on the bottom of the ocean.
I suggest to use something like
- Code: Select all
local wrecklist = ScenarioUtils.CreateArmyGroup('ARMY_17', 'frigatewrecks', true)
for _, wreck in wrecklist do
local position = wreck:GetPosition()
Warp(wreck,position[1], GetTerrainHeight(position[1],position[3]),position[3],wreck:GetOrientation())
end
I didnt test it, but when you do that in OnStart() of the map script the wrecks that are defined in the "frigatewrecks" group should be snaped to the sea floor