Forged Alliance Forever Forged Alliance Forever Forums 2017-07-01T02:03:20+02:00 /feed.php?f=53&t=14821 2017-07-01T02:03:20+02:00 2017-07-01T02:03:20+02:00 /viewtopic.php?t=14821&p=151519#p151519 <![CDATA[Re: Placing reclaim on sea floor?]]> Statistics: Posted by Evildrew — 01 Jul 2017, 02:03


]]>
2017-06-30T20:00:07+02:00 2017-06-30T20:00:07+02:00 /viewtopic.php?t=14821&p=151512#p151512 <![CDATA[Re: Placing reclaim on sea floor?]]>
the code for the wrecks usually generates the ship wrecks on the water surface. However... you can use
Code:
Warp( unit, location, [orientation] )
to move the wreck on the bottom of the ocean.

I suggest to use something like
Code:
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

Statistics: Posted by CookieNoob — 30 Jun 2017, 20:00


]]>
2017-06-30T19:43:02+02:00 2017-06-30T19:43:02+02:00 /viewtopic.php?t=14821&p=151510#p151510 <![CDATA[Re: Placing reclaim on sea floor?]]> Statistics: Posted by Morax — 30 Jun 2017, 19:43


]]>
2017-06-30T17:21:05+02:00 2017-06-30T17:21:05+02:00 /viewtopic.php?t=14821&p=151505#p151505 <![CDATA[Placing reclaim on sea floor?]]>
It is possible in the map editor to have the boats be attached to the grid on sea floor when saving but ingame they appear on water surface level once the game launches...

Does anyone know if it is possible?

Statistics: Posted by Evildrew — 30 Jun 2017, 17:21


]]>