I subbed seeing you have a ton of useful content that will help me figure things out down the road. I plan to build off the AI made here, but currently struggling to get the multiple senses working. It seems to break the patrol path as well if I run away enough.
@ДинарВасильев Жыл бұрын
Thank you very much for your lessons. it turns out very well. Can you do lessons on flying in 3 coordinates AI please.?
@andrewritz12559 ай бұрын
Hey, Ryan I have done everything up to this point but for some reason I cant get the NPC to chase, inspect noise, or chase after touch. Do you have any suggestion? Everything shows in debug but I do not get and reactions for senses.
@perochialjoe7 ай бұрын
Unfortunately this doesn't work for me in Unreal 5.2. I'm not exactly sure why though since Sight and Hearing work perfectly fine, Touch seems to be pretty buggy though from what I've seen. Fortunately you can just use Event Hit then check if Other == PlayerCharacter (or whatever your player reference is) and have that lead into your Touch event. At least if one of the AIPerceptions is going to be weird then it's the one with the easiest workaround.
@lmbits10472 жыл бұрын
It would be great to see how you solve the direction issue the AI has when trying to chase you because he left exactly when rotating to match the patrol arrow rotation.
@caelinhobbs7647 Жыл бұрын
I fixed it by adding a collision box then did actor end overlap and had it check if the actor ending the overlap was the character variable and if it was then I did "onpatrollerexit" event
@Wade9788 ай бұрын
@caelinhobbs7647 Did you add the collision box AND the overlap AND the boolean variable "IsCharacterOverlap" to the NPC or to the patrol point?
@HeyItzHydra6 ай бұрын
@@caelinhobbs7647 You're an absolute legend!
@Iamookek4 ай бұрын
Set your enemy NPC's Orient Rotation to Movement - true.
@chizzie24Ай бұрын
From @Tom-f4d6l, in the prev tutorial, i applied their fix in the comment : under the AI controller>AI, uncheck "set control rotation from pawn orientation" This allows you to use "set controller rotation" to change the rotation of the character. It also wont cause any wonky rotations when the character chases the player. I didnt apply the gate part nor the patrol exit as well. Just the part before the gate and it works well even with touch
@DavidGWilliams19812 жыл бұрын
Darn, I'm still stuck with UE4, hope you show the workaround you mentioned.
@sanketvaria9734 Жыл бұрын
does hit event work if the actor does not have collision box? or it has a collision box but everything is set to overlap?
@nassergreatdeveloper3745 Жыл бұрын
Thank you Rayan. I think I have problem in Ai perception. there are not working specially when you have more than one sense. For example, Ai seems to see me but not chase me. I'm using Unreal engine 5.1
@fortismilites3 ай бұрын
It looks like Report Touch Event no longer works as of unreal 5.3