I need a way to move a FPS controller from one model to another…what would be an efficient way to do that?
public Transform target;
voidUpdate(){
transform.LookAt(target);
transform.position = Vector3.MoveTowards(transform.position, target.transform.position, .03);
}
Attach this to the object you want to move.
crunchy do you mean change the controllable object from the “person” to a “vehicle”, or something like that?
No, it’s from one creature to the next…And actually it goes from an overhead view of the settlement with controller off, where you can update minion stats or cast miracles and then when you want to possess a minion you go into fps view and control that minion. It has to attach the controller to the model and turn off AI control.
The camera part of the controller seems to “move” alright (using a similar idea as TRALLALAL mentions above for example) but the controls go crazy on the new model and don’t seem to work right anymore.
One hideous work around i devised has two seperate models for each minion, one attached to the first person controller and one attached to the ai controller and I “turn off” whichever one isn’t being used. Probably not very efficient, i have no idea, but it seems to work…