Transferring Ships to a Dock

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
rmeckman
Posts: 91
Joined: Sun Aug 18, 2019 3:57 pm
Location: Idaho

Transferring Ships to a Dock

Post by rmeckman »

In the Scenario Editor, I know that an existing ship at sea can be instantaneously moved to a different location at sea using the "m" key or a Lua script. However, is there a command or script that will instantaneously move a ship at sea to a dock while retaining any cargo, boats, or aircraft loaded on the ship? I have not found any obvious way to do this.

A related question is whether aircraft created in one structure can be instantaneously moved to another (for example from an open parking spot to a revetment), including a structure located at a different airbase.
rmeckman
Posts: 91
Joined: Sun Aug 18, 2019 3:57 pm
Location: Idaho

Re: Transferring Ships to a Dock

Post by rmeckman »

It looks like ScenEdit_HostUnitToParent is the function I was looking for. It is down in the "Others" section of the Command Lua function list, so I missed it at first.
Post Reply

Return to “Mods and Scenarios”