- Home /
Question by
Thunderturtle712 · Apr 22, 2014 at 12:29 AM ·
errorscript.doors
MissingFieldException: System.Single.speedOpen. Door script.
I dont know what i did. I dont know what this means. Please help me. The script is for a door. The script was javascript. Here is the script.
var door: Transform;
var angleOpen: int;
var angleClose: int;
var speedOpen: int = 1000;
function OnTriggerStay(other:Collider){
if (door.transform.localEulerAngles.y < angleOpen){
door.transforrm.Rotate(Vector3.up*Time.deltaTime.speedOpen);
}
}
Comment
Best Answer
Answer by getyour411 · Apr 22, 2014 at 12:32 AM
There are a few errors here including using .speedOpen as a property of Time.deltaTime which it is not; see doc/examples of Rotate
http://docs.unity3d.com/Documentation/ScriptReference/Transform.Rotate.html
You will benefit more from a good tutorial on scripting than pounding your head against a wall
https://unity3d.com/learn/tutorials/modules/beginner/scripting