- Home /
Network? controles backwards?
var speed : float = 3.0; var rotateSpeed : float = 3.0;
function Update () {
if(networkView.isMine){
var controller : CharacterController = GetComponent(CharacterController);
// Rotate around y - axis transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
// Move forward / backward var forward : Vector3 = transform.TransformDirection(Vector3.forward); var curSpeed : float = speed Input.GetAxis ("Vertical"); controller.SimpleMove(forward curSpeed);
}
}
@script RequireComponent(CharacterController)
Could you format the question a little better? I'm having trouble seeing where the tabs are supposed to be.
Answer by tyler.douglas · Jan 18, 2012 at 06:42 AM
so here my script but I control him and he controls me? and also is the if(networkView.isMine) does it have to to be a cap?
Please don't post comments as answers. Just edit your question so that it is possible to read, and I'll try to help you best I can. Also, I really can't understand what you're talking about in that second sentence.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
LAN playing game Controllers name + spawn point 1 Answer
network fps HELP ASAP 3 Answers
character controller problem on network 0 Answers
Multiplayer FPS Fail 4 Answers