Jump to content

Spawning player outside of the train - unable to move


Rafał

Recommended Posts

Posted (edited)

Whenever Im trying to spawn player outside playable train Im unable to move camera or even player. If I will set 'teleportToCabin' as true and the player is spawned inside vehicle I can move just fine. By the way can I also set camera rotation for spawning outside?

spawning_outside.png.8995123bf82366684a435809ac406bdb.png

Edited by Rafał
Link to comment
Share on other sites

  • SIMRAIL Team

Please use

SetCameraView(CameraView.FirstPersonWalkingOutside)

after spawning a train to set initial state of camera.

https://wiki.simrail.eu/LUA/enums/CameraView

 

To rotate camera you can use one of followed functions:

Also, you can't set weather in PrepareScenario. This function is called when in game-menu when player select scenario. Use EarlyScenarioStart or StartScenario istead.

  • Like 1
Link to comment
Share on other sites

51 minut temu, inomushis napisał(a):

Also, you can't set weather in PrepareScenario. This function is called when in game-menu when player select scenario.

Good to know, but I have to admit that I've based on ET22 scenario made by someone from SimKol 😅
SetWeather_in_PrepareScenario.thumb.png.794e999c896aa2ae6b000839a577f13e.png

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Our servers

    • Drivers | Maszyniści Drivers | Maszyniści
      • PL2
      • pl2
      • 51 / 76
          • Percentage filling 67%
          • Most players 103
      • PL3
      • pl3
      • 4 / 80
          • Percentage filling 5%
          • Most players 78
      • PL4
      • pl4
      • 5 / 73
          • Percentage filling 7%
          • Most players 87
      • PL8
      • pl8
      • 2 / 86
          • Percentage filling 2%
          • Most players 84
      • EN1
      • en1
      • 17 / 78
          • Percentage filling 22%
          • Most players 81
      • EN2
      • en2
      • 3 / 79
          • Percentage filling 4%
          • Most players 60
      • EN3
      • en3
      • 0 / 87
          • Percentage filling 0%
          • Most players 60
      • DE1
      • de1
      • 21 / 73
          • Percentage filling 29%
          • Most players 87
      • DE3
      • de3
      • 2 / 70
          • Percentage filling 3%
          • Most players 67
      • DE4
      • de4
      • 1 / 81
          • Percentage filling 1%
          • Most players 65
      • FR1
      • fr1
      • 4 / 73
          • Percentage filling 5%
          • Most players 49
      • UA1
      • ua1
      • 1 / 71
          • Percentage filling 1%
          • Most players 27
      • CN1
      • cn1
      • 1 / 57
          • Percentage filling 2%
          • Most players 28
      • CZ1
      • cz1
      • 3 / 73
          • Percentage filling 4%
          • Most players 61
      • ES1
      • es1
      • 4 / 72
          • Percentage filling 6%
          • Most players 23
    • Dispatchers | Dyżurni ruchu Dispatchers | Dyżurni ruchu
      • PL2
      • pl2
      • 26 / 34
          • Percentage filling 76%
          • Most players 34
      • PL3
      • pl3
      • 0 / 34
          • Percentage filling 0%
          • Most players 31
      • PL4
      • pl4
      • 1 / 34
          • Percentage filling 3%
          • Most players 34
      • PL8
      • pl8
      • 1 / 34
          • Percentage filling 3%
          • Most players 27
      • EN1
      • en1
      • 4 / 34
          • Percentage filling 12%
          • Most players 34
      • EN2
      • en2
      • 2 / 34
          • Percentage filling 6%
          • Most players 21
      • EN3
      • en3
      • 2 / 34
          • Percentage filling 6%
          • Most players 13
      • DE1
      • de1
      • 18 / 34
          • Percentage filling 53%
          • Most players 34
      • DE3
      • de3
      • 2 / 34
          • Percentage filling 6%
          • Most players 29
      • DE4
      • de4
      • 0 / 34
          • Percentage filling 0%
          • Most players 29
      • UA1
      • ua1
      • 0 / 34
          • Percentage filling 0%
          • Most players 17
      • FR1
      • fr1
      • 1 / 34
          • Percentage filling 3%
          • Most players 23
      • ES1
      • es1
      • 3 / 34
          • Percentage filling 9%
          • Most players 15
      • CZ1
      • cz1
      • 5 / 34
          • Percentage filling 15%
          • Most players 28
      • CN1
      • cn1
      • 1 / 34
          • Percentage filling 3%
          • Most players 19
    • 30 Total servers
    • 185 / 1639 Total players
    • 11% Filled servers
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy