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 can I know the name of what is colliding?

Hi

I would like to know how can I get the game of what is colliding on the level. I need it because I want this : "When the player collides when an other player, he lose life" I can't make a Begin Overlap because if the player go in a room and if in this room there is a trigger, the trigger will detect the player and sho the Begin Overlap will lose the life of the player.

So I need to know how to get the name of the object who can collides in the level.

Thanks

Product Version: Not Selected
Tags:
more ▼

asked Jul 23 '14 at 10:27 PM in Blueprint Scripting

avatar image

Langouste
6 6 9 11

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

1 answer: sort voted first

"Other" output returns actor that triggered the event, you can get name from that or actually compare actors insted

more ▼

answered Jul 24 '14 at 12:10 AM

avatar image

Shadowriver
37.2k 936 172 1116

avatar image mindfane Jul 24 '14 at 03:21 AM

^this.

Plus you can try to cast the 'Other' actor to a 'Player' (whatever class the enemy players are) and if it succeeds, take away his life

avatar image Langouste Jul 24 '14 at 08:56 AM

Thanks you guys!

I have de made this alt text I have made "Cast to pawn" and that's it when I to a trigger the player don't lose life.

problem.png (86.0 kB)
(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