I want to add an element to my game where i can enter a vehicle or ride a mount like GTA did or WOW.
my maps are extensive and take a while to travel across so i want to call a mount or car, whatever, im undecided on that yet. with a hotkey or button.
so i will make a model of a mount or car and add control script, save it as a prefab. But how do i script to change from FPSController to mount?
But how do i script to change from
FPSController to mount?
There's no one answer to that question, but typically it will involve enabling one component and disabling another, creating and destroying game objects, or adding logic to the code that handles player input so that the input is only handled when a specific control mode is active. Which method would be best depends on the circumstances, and which method to use is entirely up to you.
I'd also suggest searching here and on the forums for e.g. 'enter vehicle', 'character vehicle', or 'get into vehicle', as this topic comes up fairly frequently.