Category | Farming Simulator 2013 |
Created | 11.07.2014 21:11 |
Marc Behrend (Unknown) | 11.07.2014 21:13 |
---|---|
Hello, I want to create a camera mod, that saves the camera angle and zoom when leaving a vehicle and restores it when entering again. But I have no idea where to start. Marc |
Emil Drefers (Unknown) | 14.07.2014 07:59 |
---|---|
Hi, you can find the original scripts at: http://ls-mods.de/scriptDocumentation.php Propably you should check out: VehicleCamera ( http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/VehicleCamera ) which is loaded by the Steerable specialization ( http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/specializations/Steerable ) So you have to read out the current values of the camera node(s) when the players exits the vehicle and set them when the vehicle is re-entered. Cheers, Emil |
Marc Behrend (Unknown) | 14.07.2014 21:19 |
---|---|
Thanks, that helped me a lot. Now it works fine. Marc |
Marc Behrend (Unknown) | 15.07.2014 14:14 |
---|---|
Hello, how can I save these values in the savegame? Marc |
Emil Drefers (Unknown) | 21.07.2014 08:33 |
---|---|
Hi, there are two functions (of a specialization) which get called either during the saving process or during the loading process. as an example you could have a look at the plough specialization: http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/specializations/Plough getSaveAttributesAndNodes and loadFromAttributesAndNodes How these functions work should be obvious, i guess. Regards, Emil |
Note: Log in to post. Create a new account here.