x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Why is the AI projectile not colliding with the player?

hi, i'm trying to create all the logic for my game's ai, i'm having a small issue.

i'm using the fps c++ template, i have used some functions in c++ for my player but i'm coding my ai with blueprints.

so far i have created a patrol behavior, my ai can see and hear the player, but the problem is when tha ai must fire to the player pawn, the ai fires but the projectile doesn't collide with the player, i have already checked the hit and overlap events on the player and the projectile but without any results.

i have created a copy of the projectile blueprint from the fps template and i'm using it as the bullet for my enemies.

any ideas on what i need to do to fix this problem ?

thanks in advance for all the help.

Product Version: Not Selected
Tags:
more ▼

asked Jun 05 '14 at 05:59 PM in Blueprint Scripting

avatar image

enzoravo
18 3 5 8

avatar image Steve Allison STAFF Jun 05 '14 at 08:53 PM

Hey Daimaku,

The first thing I would check is if you are spawning a projectile blueprint is to look at the Mesh for the projectile and make sure it has collision enabled (you'll need to open the Mesh asset in the Static Mesh Editor).

-Steve

avatar image enzoravo Jun 05 '14 at 09:14 PM

thanks for the answer, i already checked the mesh on the statich mesh editor it has simple collision enabled, the weird thing here is that the same bullet work just fine when i used it to fire the player's weapon, but for the ai's weapon is not working, i checked with a "print" node and the bullet collide with everything but not the player.

if there any flag on the proyectile from the fps template to avoid the collision from the player's character?

avatar image nafasso Mar 04 '16 at 01:31 AM

Hey there ! I am experiencing the same issue as you. My bullet when used by the AI does not collide with the player but using the same bullet by the player, it collides with the AI pawn. Did you find any fix or solution for this problem ?

avatar image enzoravo Mar 04 '16 at 01:55 PM

the problem was that the bullet was spawning inside the weapon mesh, i move the location of the spawn point of the bullet a little and the bullet has worked fine.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question