Stormworks: Build and Rescue

Stormworks: Build and Rescue

StormLink Procedural Passenger Missions Mod
Snjo 27. juli 2022 kl. 6:31
Code change suggestion for a transfer option while away from stations.
I made a small addition to the lua script to allow for transfer of passengers while two vehicles are away from a station. For instance loading passengers from a boat to a bus on a beach.

I added the command ?ptransfer, a minor modification of ?pload.

These were the changes:

added section starting with
elseif (command == "?ptransfer")
containing the pload lines.

Inverted the enroute check, so you can only transfer away from station:
if v_zonestatus ~= "Enroute" then
server.notify(user_peer_id,"Enroute", "Vehicle is at station already, use ?pload", 2)

Changed the line, removing the station check:
--if ((passenger.destination == v_dest or v_dest == "all") and server.isInZone(passloc, v_zonestatus) and vehicle.id ~= math.floor(passenger.seat/1000)) then

to
if ((passenger.destination == v_dest or v_dest == "all") and vehicle.id ~= math.floor(passenger.seat/1000)) then

I made these changes in the Lite version of the mod, but I assume the code is the same.