Rafał Posted May 12 Share Posted May 12 (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? Edited May 12 by Rafał Link to comment Share on other sites More sharing options...
SIMRAIL Team inomushis Posted May 13 SIMRAIL Team Share Posted May 13 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: https://wiki.simrail.eu/LUA/functions/CameraSetLocalEulerRotation https://wiki.simrail.eu/LUA/functions/CameraSetEulerRotation https://wiki.simrail.eu/LUA/functions/CameraTurnTowards 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. 1 Link to comment Share on other sites More sharing options...
Rafał Posted May 13 Author Share Posted May 13 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 😅 Link to comment Share on other sites More sharing options...
Recommended Posts