Yes, well as the title says i need help scripting a camera. I want it to move foward using E and backwards using R. Kind of like a UAV in MW2 and BFBC2
Any ideas?
Thanks for all help!
Yes, well as the title says i need help scripting a camera. I want it to move foward using E and backwards using R. Kind of like a UAV in MW2 and BFBC2
Any ideas?
Thanks for all help!
var val : float; // is the value wich the cam moves each frame that e or r are pushed.
function Update() {
if (Input.GetKey(“e”))
transform.position.z += val;
else if (Input.GetKey(“r”))
transform.position.z -= val;
}
// Put this script in the cam
Alright ty bro
no problem