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.
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy