|
Post by drongophat on Dec 12, 2017 1:21:24 GMT
I managed to get animals to attack me and my player character can kill them also.
is there anyone that might know a way to get invectors NPCs to also target the animals as well?
any help is much appreciated
|
|
|
Post by Legion on Dec 13, 2017 0:10:14 GMT
Do you mean that an Invector AI NPC attacks animals? The simplest way that occurs to us is to add the TAG of each animal to the list of tags that the NPC can attack. Here in v_AI Controller: Here in v_MeleeManager attached to your NPC:
|
|
|
Post by uberwiggett on Dec 23, 2017 6:25:38 GMT
2.0 came out so I picked it up, just waiting on an invector integration tutorial before I can fully interact with the NPCs but it has ranged attack npcs functioning and it's pretty easy to set up! Still looking forward to what Invector develop with their new AI.
|
|
|
Post by kevios on Dec 25, 2017 16:22:32 GMT
Any News about The Integration? I Want buy Emerald AI when The Integration for Invector work ... ^^
|
|
|
Post by uberwiggett on Dec 29, 2017 1:22:59 GMT
uberwiggett said: ↑ So far rejigging the layers and detections hasn't given me any issues, I have ranged enemies and melee ones targeting each other fine. However I haven't set up the player targeting, waiting to get the invector integration tutorial for that, I'm assuming this tute will cover damage handling between the two systems??
so excited! once I can get them to pass the damage my AI dreams will be sorted!!
From the unity forum thread, i was waiting too and looks like the "next few days" I was told last week got interrupted by christmas holidays and demands for RFPS :P But further down he says RFPS will be a day or two. These are written tutorials, I'll do my best to get time and make video ones as soon as the documentation is out.
|
|
|
Post by uberwiggett on Jan 23, 2018 7:06:36 GMT
Sorry for not updating sooner, the tutorial is out! check out the unity forum thread for the link to the document. It's quite simple with a cut n paste. I also have a new video out showing how to do it.
|
|
|
Post by kevios on Jan 23, 2018 7:22:18 GMT
i found the tutorial but i have a problem with setup a companion Ai correctly ... my companion follow the player and attack the enemy but the enemy dont attack the companion ... the enemy attack only the player ... i dont know what is wrong ... it tested all diffrent settings about layer and tags and so on ... iam very confused now and down ... anyone can make maybe a short dirty video tutorial or explain exactly how to setup it ? this would be very very helpful
|
|
|
Post by uberwiggett on Jan 23, 2018 9:15:11 GMT
just to check, are you saying the enemy AI don't target the companion, or there is no damage passing between ai companion and the enemy? I think the AI may have a priority target system so they will pick the player over other AI units unless it hits them. Also I believe emerald AI has a companion system built in, so you might want to switch to that instead of the invector one if you're using emerald AI.
|
|
|
Post by kevios on Jan 23, 2018 19:41:36 GMT
the enemy Ai dont target the companion and i think you are right with this that the AI have a priority on player ... i dont know what i have done now, but now it works... serious but ok ^^
|
|
|
Post by betamax on Jan 30, 2018 15:44:11 GMT
Hello. I am trying to get the shooter template to damage the Emerald AI player. Currently when I shoot at them with the shotgun, pistol or Assault rifle and no damage is taken by the NPC. I have went through the Emerald AI tutorial and implement the scripts as need. The Melee attack work fine, just not the ranged attacks.
|
|
|
Post by uberwiggett on Jan 30, 2018 19:52:14 GMT
I had the same problem last night. I am thinking it's a layer/collider issue. I'll have another go tonight after work and see if I can solve it.
|
|
|
Post by uberwiggett on Jan 31, 2018 11:57:07 GMT
Hello. I am trying to get the shooter template to damage the Emerald AI player. Currently when I shoot at them with the shotgun, pistol or Assault rifle and no damage is taken by the NPC. I have went through the Emerald AI tutorial and implement the scripts as need. The Melee attack work fine, just not the ranged attacks. Hey mate turns out I was right! By default the shooter aim layer is set to, well, default. All you need to do is set the aim layer to include "Enemy", as that is the tag layer your AI is using. WARNING! the archery system still needs to be fixed for Emerald AI, unfortunately when you shoot an arrow it sticks into the enemy (which is cool!) but it doesn't stop sending damage to them so one shot and they die slowly. This is actually cool if you want to add a bleeding out effect, but for your average RPG it isn't! Rest assured, you can make a simple tweak to delete the damage part of the arrow after it collides the first time. I'll look into where to call the event and get back to you later with how to set that up.
|
|
|
Post by betamax on Jan 31, 2018 16:43:53 GMT
Found it thanks!
|
|
|
Post by marceloasg on Apr 8, 2018 22:30:22 GMT
Can someone help me with this update error?
|
|
|
Post by jk350z on Apr 12, 2018 19:57:29 GMT
With the newest version of Invector and Emerald 2.0. Here are the edits I made.. (works for me).
at the top add: using Invector; Change DamagePlayer Function to below: if (CurrentTarget != null && CurrentTarget.GetComponent<Invector.vCharacterController.vCharacter>()){ var PlayerInput = CurrentTarget.GetComponent<Invector.vCharacterController.vMeleeCombatInput>();
if (!PlayerInput.blockInput.GetButton()){ var _Damage = new vDamage (CurrentDamageAmount); _Damage.sender = CurrentTarget; _Damage.hitPosition = CurrentTarget.position; CurrentTarget.GetComponent<Invector.vCharacterController.vCharacter>().TakeDamage(_Damage); } }
this is by no means an official fix... just someone trying to help out others while the PROs update their code.
|
|