Vehicle Script Help
I have the following C# script that I am using to allow a player to enter and exit a vehicle, and fire the vehicle's weapon whilst they are in the vehicle. However, I keep getting the following error...
View ArticleUnity Crashes on Startup After Importing Old .unitypackage
So I tried importing a unity package from 3.2 or something into unity 4.2, and unity crashed immediately while trying to import. Now, when I try starting unity, it crashes at the splash screen. What do...
View ArticleInsert Semicolon error
When i make a script some times it says insert a semicolon but there already is a semi colon on the line it tells me to put it on so can someone help me out with this problem? here is the code: #pragma...
View ArticleRPC calls client to server Errors
Hi, I'm very confused here, just trying to understand the basics of how RPC calls work. But I'm having some errors, that in my point of view do not make any sense. on my server i have an RPC function...
View ArticleSimple syntax error that I can't seem to find
So I am using this script to travel between scenes, however it says that there are 3 errors with placing ;'s and }'s but i have already placed them, please help. #pragma strict var Scene : int = 0 ;...
View ArticleError ; expected Insert a semicolon at the end even though i put one
so here is my problem after some coding i came up with a simple error "UCE0001: ';' expected. Insert a semicolon at the end." here is my script and the error is on 46,17. I clearly put a semicolon...
View ArticleAdding score when enemy dies (Errors)
Hi, I have the following 2 codes: Enemy Health: using UnityEngine; using System.Collections; public class EnemyHealth : MonoBehaviour { public float health = 10.0f; public float score = 0f; public void...
View ArticleCant turn on flashlight
When i Picked Up the FlashLight I cant Activate it but unity gives me no error I have three scripts HUD FlashLight And Pickup Here They Are can Anyone Please Help me FlashLight.cs public class...
View ArticleError while trying to import asset
Whenever I try importing an asset into Unity (whether from asset store or not) I get a windows error which says '7-zip console has stopped working'. I use Unity 4.2 and I didn't have 7-zip installed on...
View ArticleLightmap Baking Error
Whenever I go to bake in Unity I get this error "Something went wrong in Beast lightmapper: File IO error - could not create process". I have Unity Pro 4.1.5 this is very annoying and I cannot create...
View ArticleProblem when trying to test an Android project!
I created a simple android scene: a terrain, an FPS Controller with a custom script (this one: http://forum.unity3d.com/threads/188394-Android-FPS-Control-Script ). It builds correctly, no errors, but...
View Article2D toolkit scripting error - Very Basic Stuff
Hello, I'll say outright that I'm kinda a begginer programing in unity (but know programing in general), see the thing is Unity says there's an error (the same error in several scripts) in a certain...
View ArticleVector3.lerp doest work
Hello, I have this script that's supposed to move the camera more smoothly by moving the player. But it doesn't work and it gives me this message on line -1. MissingFieldException: Field...
View ArticleWhy do I get this error while trying to create a color?
float red = .5F; Color32 temp = new Color32(red, 0, 0, 0); The best overloaded method match for `UnityEngine.Color32.Color32(byte, byte, byte, byte)' has some invalid arguments Argument `#1' cannot...
View ArticleRaycast from the wrong position.
![alt text][1] This Ray should be casting from the position of this player so I cant figure out why this keeps happening. The picture isn't the worst I've seen either. Any reason why the ray is not...
View ArticleAnimation stops working after SetActiveRecursively()
I am working on a First Person Shooter, and I recently encountered an error after creating a Switch Weapons Script. I can play the Reload Animation before I switch weapons, but after I switch weapons,...
View ArticleGame crashes!
I am using Unity3D to create my MMORPG called Lonath Online. Today I released the Open Alpha stage, but after a few hours, I got some reports that the game is crashing a few seconds after the join a...
View ArticleError in my Greade script.
I started my grenade script when i got these errors. Assets/scripts/Grenade.js(18.27)BCE0044:expecting ), found '=' Assets/scripts/Grenade.js(18.29)BCE0043:unexpected token: false...
View ArticleArgument out of range.
I am using the following script to create an Enemy Ai the issue I have hit is if there is no target it gives me the Argument out of range. If I make it add its self to the array when there is no target...
View ArticleNeed help! Enemy follows player with its head!
I have a huge problem. The enemy chases after the player headfirst. I have spent all morning (a full five hours) trying to fix this problem. I have tried to fix it with code, inspector properties, and...
View Article