Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Simple car-enter script

$
0
0
Again, i need help... i made myself a new script to enter and descend a car (in Unity 5), but it doesnt work... any idea where the problem is? It says that some semicolons are missing, but theyre all there.. Its hard... Any example or aid with that script would be REALLY welcome... here´s the script: var Cardrive = script; //Driving script for the car var Cardrive = Boolean; function Start () { Cardrive = false; } function Update () { function onTriggerEnter() { //i have a trigger next to the car´s left front door animation.play() ("Enter"); //Player "enters" the car and takes place in the driver seat Cardrive = true; //enables the car controlling script } if Input.GetKeyDown() ("e") //descend the car if you press "e" animation.play() ("Exit") ; //player exits the car Cardrive = false; //unables the car-Script }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>