I need to be able to disable/enable constant force with a script. Any ideas on why it won’t work? Thanks in advance! Btw, I will be adding whomever fixes this’ name to the credits of our game Brady
Code:
#pragma strict
function Start () {
}
function FixedUpdate () { if (Input.GetKeyDown(KeyCode.W)); constantForce.enabled = true; else if (Input.GetKeyDown(KeyCode.S)); constantForce.enabled = false; }