Teleporting a character to mouse position
Hello, I am fairly new to Unity, I have done many of the tutorials and now I am trying to reach out on my own from scratch(Much more difficult than I thought). I am trying to make a simple game were...
View ArticleMathf.Clamp help
I am trying to get an object that rotates on the X axis by input of mouse Y and stay with in a certain rotation area, this is what I have so far public float Min = 15f; public float Max = 10f; void...
View ArticleInstantiate Random Help
My script is coming up with a error of Instantiate Prefab is Null, what am I doing wrong? I am trying to create a random game object.` public GameObject Frigate1; public GameObject Frigate2; public...
View ArticleDestroy (gameObject) Help
I am trying to make practice orbs to shoot at, when armor reaches 0 they should be destroyed. Problem is, once you kill one orb, they all die. Here is my rough armor script that is attached to each...
View ArticleObject Avoidance AI Unitysteer
Hello, I was wondering if any one out there has used UnitySteer at all and knows if there is a good tutorial or documentation on it. I have have seen a few posts but cannot really find anything that...
View ArticleRaycast Arrays
Hello all, I am trying to do a collision detection and object avoidance script for a moving around in 3d space. I think I am going to try this with a system of 14 different Raycasts. Problem is, I am...
View ArticleForeach GameObject
I am using the following code for the AI to find the closest target, problem is in free-for-all fights all targets including itself have the same tag, how can i make it so it ignores itself? GameObject...
View ArticleStoring a method in a variable
Hey All, I am trying to store a method as a variable, but I don't know how. I have a weapon script that I am using to set all of my munition types, damages, ranges, etc. I used enums to list some of...
View ArticlePhoton Network Problems
Hello all, I am having a few issues with the photon system, I have just started messing around with this and I am following the Merry Fragmas tutorial, but I have ran into an issue. After a player dies...
View ArticleSystem.Reflection.MethodInfo
Hey all, I am trying to create a state machine and found an example of a simple one. I understand most of how it works except for the part that invokes the next method. it is as follows public void...
View ArticleBool Value reversed
Hey all, Got a situation here, wondering if I can get some help. Have a game object emitting particles based on a bool. It should "Play()" when value is true. Problem is, it is doing just the opposite,...
View Article