Train Functions
Aus EEP Handbuch
Version vom 13. September 2018, 16:46 Uhr von Marc Horstmann (Diskussion | Beiträge)
EEPSetTrainSpeed() | EEPSetTrainSpeed("#Name",TargetSpeed) | |
---|---|---|
type: | function |
EEPSetTrainSpeed("#Passenger train", 80) |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 11.0 | |
purpose: | Assigns new target speed to the specified train. | |
notes: |
|
EEPGetTrainSpeed() | EEPGetTrainSpeed("#Name") | |
---|---|---|
type: | function |
hResult, hData = EPGetTrainSpeed("#VT98;001") |
caller: | script | |
defined in: | EEP | |
parameters: | one | |
returns: | two | |
requires: | EEP 11.0 | |
purpose: | Enquires the current speed of the specified train. | |
notes: |
|
EEPSetTrainRoute() | EEPSetTrainRoute("#Name","Route") | |
---|---|---|
type: | function |
EEPSetTrainRoute("#Passenger train", "Route") |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Assigns a route to the specified train. | |
notes: |
|
EEPGetTrainRoute() | EEPGetTrainRoute("#Name") | |
---|---|---|
type: | function |
hResult, hData = EEPGetTrainRoute("#Personenzug") |
caller: | script | |
defined in: | EEP | |
parameters: | one | |
returns: | two | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Enquires the current route of the specified train. | |
notes: |
|
EEPSetTrainLight() | EEPSetTrainLight("#Name",true|false) | |
---|---|---|
type: | function |
EEPSetTrainLight("#Passenger train",true) EEPSetTrainLight( "#Ford_Transit", 1 , true ) |
caller: | script | |
defined in: | EEP | |
parameters: | two or three | |
returns: | one | |
requires: |
EEP 11.2 Plug-in 2, EEP 14.2 Plug-In 2 |
|
purpose: | Switches the lights or the turn signals of the specified train on or off. | |
notes: |
|
EEPSetTrainSmoke() | EEPSetTrainSmoke("#Name",true|false) | |
---|---|---|
type: | function |
EEPSetTrainSmoke("#Passenger train",true) |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Turns the smoke and steam of the specified train on or off. | |
notes: |
|
EEPSetTrainHorn() | EEPSetTrainHorn("#Name",true|false) | |
---|---|---|
type: | function |
EEPSetTrainHorn("#Passenger train",true) |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Turns the warning sound of the specified train on or off. | |
notes: |
|
EEPTrainLooseCoupling() | EEPTrainLooseCoupling("#Name",true|false,Position,"#Name") | |
---|---|---|
type: | function |
EEPTrainLooseCoupling("#FreightTrain", true, 3, "#Waggons") |
caller: | script | |
defined in: | EEP | |
parameters: | three | |
returns: | one | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Separates a train consist after the specified number of vehicles. | |
notes: |
|
EEPSetTrainCouplingFront() | EEPSetTrainCouplingFront("#Name",true|false) | |
---|---|---|
type: | function |
EEPSetTrainCouplingFront("#Freight train", true) |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Activates or deactivates the front coupler of a train consist. | |
notes: |
|
EEPSetTrainCouplingRear() | EEPSetTrainCouplingRear("#Name",true|false) | |
---|---|---|
type: | function |
EEPSetTrainCouplingRear("#Freight train", true) |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Activates or deactivates the rear coupler of a train consist. | |
notes: |
|
EEPOnTrainCoupling() | EEPOnTrainCoupling("Train_A","Train_B","Train_new") | |
---|---|---|
type: | function |
function EEPOnTrainCoupling(Train_A, Train_B, Train_new) print( ""Train_A.." and "..Train_B.." became "..Train_new"") end |
caller: | EEP | |
defined in: | script | |
parameters: | three | |
returns: | none | |
requires: | EEP 14 Plug-In 1 | |
purpose: | Called if two trains are coupled. | |
notes: |
|
EEPOnTrainLooseCoupling() | EEPOnTrainLooseCoupling("Train_A","Train_B","Train_old") | |
---|---|---|
type: | function |
function EEPOnTrainLooseCoupling(Train_A, Train_B, Train_old) print( ""Train_old.." divided in "..Train_A.." und "..Train_B"") end |
caller: | EEP | |
defined in: | script | |
parameters: | three | |
returns: | none | |
requires: | EEP 14 Plug-In 1 | |
purpose: | Called if a train gets split. | |
notes: |
|
EEPSetTrainHook() | EEPSetTrainHook("#Name",true|false) | |
---|---|---|
type: | function |
EEPSetTrainHook("#Rail Crane", true) |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Activates or deactivates the hook of the specified train for lifting goods. | |
notes: |
|
EEPSetTrainAxis() | EEPSetTrainAxis("#Name","Axis",Position) | |
---|---|---|
type: | function |
EEPSetTrainAxis("#Rail Crane", "Turn To The Left”, 100) |
caller: | script | |
defined in: | EEP | |
parameters: | three | |
returns: | one | |
requires: | EEP 11.2 Plug-in 2 | |
purpose: | Animates the specified axis of the specified train. | |
notes: |
|
EEPSetTrainName() | EEPSetTrainName("OldTrainName","NewTrainName") | |
---|---|---|
type: | function |
hResult = EEPSetTrainName("#RE 1","#RE 5") |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 14 Plug-In 1 | |
purpose: | Assignes a name to a train. | |
notes: |
|
EEPSetTrainHookGlue() | EEPSetTrainHookGlue("TrainName",true|false) | |
---|---|---|
type: | function |
EEPSetTrainHookGlue("#CraneTrain",true) |
caller: | script | |
defined in: | EEP | |
parameters: | two | |
returns: | one | |
requires: | EEP 14.2 Plug-In 2 | |
purpose: | Influences the behaviour of hooked goods. | |
notes: |
|