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. 

How to check if custom pawn is colliding with specific actor ?

alt text

Ball_BP is pawn - which spawn on every mouse click alt text

want to destroy only those ball which collides with specific actor.

Product Version: Not Selected
Tags:
more ▼

asked May 26 '14 at 10:14 AM in Blueprint Scripting

avatar image

DevilEye
108 16 24 28

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

1 answer: sort voted first

Pull off your "Hit" output, then find "Break Hit". Pull the actor from that and feed it into the Destroy Actor node.

more ▼

answered May 26 '14 at 10:20 AM

avatar image

Zeustiak
1.8k 131 68 110

avatar image DevilEye May 26 '14 at 10:41 AM

alt text

its not working.. where am i going wrong

new.jpg (100.2 kB)
avatar image Zeustiak May 26 '14 at 10:47 AM

Take "Hit Actor" and plug it into Target on the Destroy Actor.

avatar image DevilEye May 26 '14 at 11:02 AM

alt text

Nope its not working. I want to destroy Ball_BP and not the overlapping actor.

a.jpg (102.7 kB)
avatar image DevilEye May 26 '14 at 11:04 AM

Do u have any link that will explain "Break Hit Result" in depth.

avatar image Zeustiak May 26 '14 at 11:27 AM

Then put the Event hit on the player with everything else being the same. If the player is hit he destroys the ball.

You might want to try using some print strings as well to make sure the event is firing as well.

avatar image Zeustiak May 26 '14 at 11:29 AM

You basically don't need the Get Overlap Actors because if the ball collides with the player it generates the hit, which then gives you the actor that hit you. Then you just reference that actor and tell him what to do(like die).

avatar image DevilEye May 26 '14 at 11:45 AM

alt text

this actually the setup (sorry for the previous gameplay image), their is no character in the game... Ball_BP is the blueprint (pawn) which spawn on each mouse click. If any ball_bp hit's the cylinder i want only that instance of ball_bp to be destroyed. For this am checking Hit Event within Ball_BP, where i want to detect whether ball_bp is colliding the cylinder or not, if it collides, it should get destroyed.

gameplay1.jpg (154.5 kB)
avatar image DevilEye May 26 '14 at 11:55 AM

"Hit Event" itself is not getting triggered ... (plugged print string to the out put of HIT EVENT). What should i do then

avatar image Zeustiak May 26 '14 at 12:01 PM

Can anything else collide with the Cylinder? If not, then put the hit event in the cylinder. Even then, still put it in the cylinder just make it so that Destroy Actor only fires if the Hit Actor is a Ball Class.

For the hit event to work you need the collision boxes set on the assets, all the right boxes check all over the place, etc.

avatar image DevilEye May 26 '14 at 12:32 PM

Yes, further different types of ball will spawn and would collide with cylinder. Collision for the meshes are enable and working fine, as "Event Actor begin overlap" is getting triggered.

'Get overlapping actor' does check if the Hit Actor is a Ball Class? right or am wrong.is their any other way

avatar image Zeustiak May 26 '14 at 12:45 PM

So do this. In your cylinder, put an Event Actor Begin Overlap event. Take the Other Actor output and plug that into Destroy Actor.

avatar image DevilEye May 26 '14 at 01:08 PM

Thanks for your patients and support, got working :) so happy I am.

alt text

working.jpg (87.8 kB)
avatar image Zeustiak May 26 '14 at 01:28 PM

Awesome! :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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