Advanced Train Simulator (ATS) Dev Build

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

Authors: Radium, Runyx, duda

Last revision: 2 Jun, 2018 at 17:19 UTC

File size: 222.19 MB

On Steam Workshop

Description:

Dev build of ATS ( http://steamcommunity.com/sharedfiles/filedetails/?id=891938535 )

New features (beyond current ATS release):

– Train collisions
– Improved train attachments
– Louder train sounds
– CUP track support (aka works on Chernarus!)

Note: New features have not been fully tested in MP or SP

Some scripts you can try using with this version:

1. Create a train via script and give it some speed (place this in the init field of any train engine object placed on the map):

this call {
_train = [_this] call ATRAIN_fnc_createTrain;
for "_i" from 0 to 5 do
{
[_train, "ATS_Trains_AE_Wagon"] call ATRAIN_fnc_attachTrainCar;
};
_train setVariable ["ATRAIN_Remote_Cruise_Control_Enabled", true, true];
_train setVariable ["ATRAIN_Local_Velocity", 12];
_train setVariable ["ATRAIN_Remote_Velocity", 12, true];
};

2. Derail the train (assumes the name of the editor-placed engine is TRAIN)

[[TRAIN] call ATRAIN_fnc_getTrain] call ATRAIN_fnc_derailTrain

3. Control who can get in the train:

[{some code that returns true or false. _this select 0 is the player},"You need a license to drive this train"] call ATRAIN_fnc_setTrainDriveCondition;
[{some code that returns true or false _this select 0 is the player},"You need a license to ride this train"] call ATRAIN_fnc_setTrainRideCondition;

New CfgRemoteExec Rules:

class CfgRemoteExec
{
class Functions
{
class ATRAIN_fnc_requestATSInstall { allowedTargets=2; };
class ATRAIN_fnc_updateTrackMap { allowedTargets=2; };
class ATRAIN_fnc_registerTrain { allowedTargets=2; };
class ATRAIN_fnc_registerTrainCar { allowedTargets=2; };
class ATRAIN_fnc_hideTrainObjectGlobal { allowedTargets=2; };
class ATRAIN_fnc_hidePlayerObjectGlobal { allowedTargets=2; };
};
};