Choosing an AI enemy character...
Hi, I'm new to the forum so please go easy :P I was wondering if there is a way, theoretically to make a game with 100 different unique enemy characters with 50 of them being in the game world...
View ArticleAdding gravity to NPC, such as an enemy or animal?
When I place my enemy into the scene and play the enemy follows be by floating around and doesn't stick to the ground. Here is my code: var Distance; var Target : Transform; var lookAtDistance = 25.0;...
View ArticleEnemy hit by sword. Problem with colider and functions.
Hello. I have a problem with my RPG game project. I have a script with sword attack animation. And when it fall and begin to rise I want to call a function, witch will subtract HP from my enemy. I try...
View ArticleCollison Sphere / Tagged Enemies only Near Player selection
I have a script that selects my enemies by the tag called, ive been working and already asked a question and got one answered but however I managed to hit another stump, my problem is easier and all I...
View ArticleTrouble with enemy AI
I've been working on enemy AI for my game. Movement is constrained to a grid, and the idea is that when the player moves one space, the enemies move one space, like the classic dungeon crawler. I came...
View Articleenemy AI doesnt work when enemy is spawned but does if it is already in the...
i am making a simple enemy spawn system where i instantiate enemies at predetermined locations using empty game objects so that when they die i can make them spawn again rather than just having a lot...
View ArticleMake my camera turn smoothly
My script does that when i collide with a special gameobject, the camera points at the enemy. It all works but the camera just looks directly at the enemy, and does not turn slowly. How do i make it...
View Articletransform set for an enemy to follow doesnt work when enemies are spawned
i am making a simple enemy spawn system where i instantiate enemies at predetermined locations using empty game objects so that when they die i can make them spawn again rather than just having a lot...
View ArticleProblem with enemy health.
I have scripts: (in Missile) ---------- void OnCollisionEnter(Collider collision) { if (collision.gameObject.name == "ZombieSpawn(Clone)"){ EnemyFight efight = collision.GetComponent();...
View ArticleHow to see if a transform is visible without a camera
I am having trouble making an enemy script that will check whether the player is visible or obstructed from its point of view. If it is obstructed, the enemy will roam aimlessly. if it is visible, the...
View ArticleEnemy Model Floating in the Air
ok so basically i have no clue why this is happening but if someone could help me out that would be the best thing in the world. so everything else in my code works fine except the fact when the zombie...
View ArticleI want to be able to make a hostile npc go after other npcs and players
I want it to be like there are 23 hostile npcs that attack each other but can be come friendly and for the npcs to go after the player when npc decides, is it possible to do?
View ArticleSelect Enemies(Raycast) -> Display Child Quad with circle base
I have been able to select enemies with the below raycast script, however when each enemy is selected, I want to give the user feedback which enemy is selected. (i.e. a Ring around the base of the...
View Articlecollission not triggered when i touch object..
i have 1 First Person Controller as a player and created 1 cube with as enemy. Enemy has rigidbody to assign gravity to it and it moving on 1 platform which is made from cube. collision detect script...
View ArticleEnemy Moves only to One Side
Hello Recently, I've went through the Space Shooter tutorial here on the web page. After finishing that, I wanted to add enemies, which will stafe left and right in order to be in front of the player....
View ArticleEnemy locators
Hi Guys, Does anyone know how to do those locators to show what direction an enemy is coming in? Like the ones in Dead trigger 2. Any ideas or links or suggestions appreciated :D
View ArticleEnemy character controller
happy new years unity community quick question i looked around first and did not find any info on this so i thought to ask here im trying to put a creature in my game with six legs and a spider like...
View ArticleHealth bar losing health
GameManager.cs using UnityEngine; using System.Collections; public class GameManager : MonoBehaviour { //Player Life public Texture playersHealthTexture; //Control Screen Position of Texture public...
View ArticleUnable to re-spawn after colliding with enemy
Hi I am new to unity, I have written a re-spawn which works if the character falls off the edge of the map, however once the player collides with the enemy the re-spawn text will appear and the game...
View ArticleRay Cast Click on Enemy - Change Current Target
My raycast target enemy works perfect, my only problem is when I have a target the only way to untarget is to kill the enemy or to right click. I want to make it so if I have a target and i choose to...
View Article