TOH – Static Civilian Ships

If you liked this item, please rate it up on Steam Workshop page.

Author: Lexx

Last revision: 19 Jul, 2016 at 08:59 UTC

File size: 51.6 MB

On Steam Workshop

Description:
This mod…

… 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.

The ships can be found under…

… empty -> structures -> seaport

Additionally to the ships…

… 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.