|Category||Farming Simulator 2013|
|Marc Behrend (Unknown)||11.07.2014 21:13|
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.
|Emil Drefers (Unknown)||14.07.2014 07:59|
you can find the original scripts at:
Propably you should check out:
( 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.
|Marc Behrend (Unknown)||14.07.2014 21:19|
|Thanks, that helped me a lot. Now it works fine.
|Marc Behrend (Unknown)||15.07.2014 14:14|
how can I save these values in the savegame?
|Emil Drefers (Unknown)||21.07.2014 08:33|
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:
How these functions work should be obvious, i guess.
Note: Log in to post. Create a new account here.