TOH – Static Civilian Ships
… adds various cargo ship variants (ported over from Take on Helicopters) to the game. They are *static* and *only* useful as background decoration. You *can not* walk on them (edit: Actually you can walk on a few parts of them), and the ships should never be placed in front of a players face, as they are lacking details and look plain ugly in a close-up.
… empty -> structures -> seaport
… this package comes with a script file that allows mission makers to create actual moving ships (originally written by zooloo75 – I’ve adjusted it a little bit for the purpose of this mod). For this script to work, simply place one of the ships in the map, then add to the init command line:
_nil = [this,((direction this) + 180),500,0.025,0] execVM "lexxfn_shipMove.sqf";
Explanation: [target,direction,distance to move, speed, pause time]
In the above shown example, the ship will move a distance of 500 with a speed of 0.025 – after this, it will stand still and do nothing.
Warning: DO NOT add this in a multiplayer mission, unless you know what you are doing. The object init field is getting called every time a player joins the server, so you can end up with an endless stream of script calls, which is bad for performance.