Camera Functions

Aus EEP Handbuch
Wechseln zu: Navigation, Suche
EEPSetCamera() EEPSetCamera(Type,"Name")
type: function
    EEPSetCamera(0,"Station")
                
caller: script
defined in: EEP
parameters: two
returns: one
requires: EEP 11.3 Plug-in 3
purpose: Activates a stored camera position.
notes:
  • First argument is the type of camera:
    • 0=static
    • 1=dynamic
    • 2= mobile camera
  • Second argument is the name of the camera as a string.
  • Return value is true if the targeted camera exists, else false.


EEPSetPerspectiveCamera() EEPSetPerspectiveCamera(ID,"TrainName")
type: function
    EEPSetPerspectiveCamera(1,"#Passenger train")
                
caller: script
defined in: EEP
parameters: two
returns: one
requires: EEP 11.3 Plug-in 3, EEP 14.2 Plug-In 2
purpose: Activates a camera connected to the specified train.
notes:
  • First argument is the relative position of the camera and matches selection 1 to 9 on your keyboard (i.e. 1 = straight left, 2 = straight right, ..., 8 = cockpit camera etc.).
  • Second argument is the train name as a string.
  • New in EEP 14.2 Plug-In 2: if the second parameter is omitted, the camera gets aimed at the active train.
  • Return value is true, if the targeted train and camera exist, else false.
  • Calling this camera while it is already active turns off the follow mode.