- Home /
This question was
closed Nov 30, 2015 at 08:04 PM by
servival.
just a simple question..
This is must be the easiest question asked in this site:
I want to change this
var EngineTorque : float = 230.0;
to 50 as long as i keep pressing "s"
please guys you need to give me that code
Comment
please guys you need to give me that code
This is highly frowned upon here. At the very least have a go first and present your tried code.
Best Answer
Answer by eshonbel · Jun 22, 2014 at 04:08 PM
k don't be too desperate, hardly anyone ever answers my questions
function Update(){
if(Input.GetKeyDown("s"))
{
EngineTorque = 50.0;
}
else{
EngineTorque = 230.0;
}
}
mark as an answer pls