- Home /
is it possible to destroy the player and instantiate another controller?
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?
Answer by Jesse Anders · Dec 19, 2010 at 02:55 PM
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.
Your answer
Follow this Question
Related Questions
How to make camera position relative to a specific target. 1 Answer
RPG like GUI character control 1 Answer
How do I mount a Vehicle? 4 Answers
Entering and Exiting Vehicals 2 Answers
JCar help needed 1 Answer