diff options
author | orwell96 <orwell@bleipb.de> | 2021-10-25 21:13:26 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-10-25 21:13:26 +0200 |
commit | 61a4526e8c45ee265ecfd3e7409f267e220a3d8a (patch) | |
tree | ba5dd42f8f28fd6634e316d917e9c5c0afb169c9 /advtrains_train_japan | |
parent | d44c410f7c2a7202ee68b66fc50febae89e0c5dc (diff) | |
download | basic_trains-61a4526e8c45ee265ecfd3e7409f267e220a3d8a.tar.gz basic_trains-61a4526e8c45ee265ecfd3e7409f267e220a3d8a.tar.bz2 basic_trains-61a4526e8c45ee265ecfd3e7409f267e220a3d8a.zip |
Coupling: Add coupler type definitions
Diffstat (limited to 'advtrains_train_japan')
-rw-r--r-- | advtrains_train_japan/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/advtrains_train_japan/init.lua b/advtrains_train_japan/init.lua index a784845..930ffc8 100644 --- a/advtrains_train_japan/init.lua +++ b/advtrains_train_japan/init.lua @@ -1,5 +1,8 @@ local S = attrans +-- note: scharfenberg coupler is defined in advtrains core +advtrains.register_coupler_type("train_japan_interwagon", attrans("Japanese Train Inter-Wagon Connection")) + advtrains.register_wagon("engine_japan", { mesh="advtrains_engine_japan.b3d", textures = {"advtrains_engine_japan.png"}, @@ -61,6 +64,8 @@ advtrains.register_wagon("engine_japan", { [1]={frames={x=60, y=80}, time=1} } }, + coupler_types_front = {scharfenberg=true}, + coupler_types_back = {train_japan_interwagon=true}, door_entry={-1.7}, visual_size = {x=1, y=1}, wagon_span=2.5, @@ -131,6 +136,8 @@ advtrains.register_wagon("wagon_japan", { [1]={frames={x=60, y=80}, time=1} } }, + coupler_types_front = {train_japan_interwagon=true}, + coupler_types_back = {train_japan_interwagon=true}, door_entry={-1.7, 1.7}, visual_size = {x=1, y=1}, wagon_span=2.3, |