Rafał Posted May 12, 2024 Posted May 12, 2024 (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, 2024 by Rafał
SIMRAIL Team inomushis Posted May 13, 2024 SIMRAIL Team Posted May 13, 2024 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
Rafał Posted May 13, 2024 Author Posted May 13, 2024 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 😅
Recommended Posts