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"

How do I get assets to collide with each other to accumulate points?

Hey guys,

So for my little level I wanted this mini-game scenario where if you throw around potions, you get points (kind of like a Link smashing pots sort of thing). I've managed to make a blueprint where if you (the player) collide with it, it gives you points but I can't seem to make it react to the other potions in the room? It will only give me points if I physically walk into them which isn't what I wanted.

http://i.imgur.com/XKyScfp.png http://imgur.com/OdZ0adD

I've just used a print string for now instead of a U.I or anything fancy. This is all in my Level blueprints.

Product Version: UE 4.8
Tags:
more ▼

asked Nov 19 '15 at 12:02 PM in Blueprint Scripting

avatar image

Rhibear
1 1 2 2

avatar image Enlo Nov 19 '15 at 12:11 PM

I can't seem to make it react to the other potions in the room?

What ist IT and what do you want to achieve? You mean that when you throw the object against some other object, it does not execute the OnActorHit?

avatar image Rhibear Nov 19 '15 at 12:14 PM

I was hoping to make it so that when I throw the objects at each other in the room it will give me points. I don't think using OnActorHit is the right way to do it but I don't know :(

avatar image Erasio Nov 19 '15 at 12:25 PM

A small pointer:

Does it collide with other Potions?

No -> Certainly an issue with collisions. Yes -> You most likely have to check "Simulation Generates Hit Events" in your mesh default (or wherever you have your collision).

avatar image Rhibear Nov 19 '15 at 12:50 PM

Hey there! Is that in the details panel? I can't seem to locate it.

avatar image Rhibear Nov 19 '15 at 12:50 PM

The 'Simulation Generates Hit Events' I mean

avatar image Erasio Nov 19 '15 at 01:53 PM

It's under collision.

http://imgur.com/yUuM5h0

avatar image Rhibear Nov 26 '15 at 09:17 AM

Awesome! That's done it, thanks! Sorry for the late reply I've only just managed to get into labs again.

avatar image Enlo Nov 19 '15 at 12:52 PM

In both cases that Erasio outlined, you should check the Collision Preset of your Potions. Make sure that the Potions overlap or block (if you use Hit, it's Block, overlap for overlap) with the channel they are in itself (eg "Pawn Only would only collide with the player, but not with other pots).

I suggest you add a print out to both OnHit and OnOverlap of your potion.

Maybe you need to wrap your potion wrap into a collision capsule (if the potion's mesh has no collision configured)

avatar image Rhibear Nov 19 '15 at 12:55 PM

Ok awesome! Thanks guys, I'll try it out and update you with what happens :)

avatar image Rhibear Nov 26 '15 at 09:17 AM

I think it's all sorted now, thanks to both of you - you've been a big help!!

(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