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"

Third person template bone names not matching up with linetrace by channel

Hi everyone.

I've been having some trouble with my line trace by channel system and using it to get the exact bone hit to set up a damage system.

Now, I've set up everything to actually identify the right bone on the enemy AI character (derived from third person template) when shooting and dealing damage accordingly etc.

THE PROBLEM: In the screenshot below, I actually test the hit bone name and check through each possible name. If it is true, it carries on to deal damage depending on the area and stops testing. The problem is that for some reason it only goes through as true for the head, spine_01, spine_02 and pelvis. Anything else such as the arms and legs, simply do not return true. So I can currently only deal damage if I shoot the AI in the head, spines, and pelvis even though it still returns the other names like it should.

Please note that I went through the whole system numerous times and there are no clear errors. Everything is linked up the same and is supposed to work. The problem lies with when I specifically test the name to see if it's equal. So by the time it gets to upperarm_l the name is spelled exactly the same as I did a print screen test to check, but it still comes out as false.

If anyone has any clue on how to fix this. I would greatly appreciate it. I'm urgently working on a solution because we're getting marks on our prototype next week and so I've fixed all the problems that needed fixing except this and it's quite a crucial part of my prototype.

Thank you. alt text

alt text

Product Version: UE 4.15
linetrace 1.png (339.1 kB)
linetrace 1.png (297.1 kB)
more ▼

asked Mar 20 '17 at 10:05 AM in Blueprint Scripting

avatar image

1 1

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

1 answer: sort voted first

Hectic... Nevermind. For anyone possibly having made the same dumb mistake as I. When comparing bone names, even if it is displayed as upperarm_r or upperarm_l, the L(Left) and R(Right) parts of the name should be in capital letters.


more ▼

answered Mar 20 '17 at 11:04 AM

avatar image

1 1

(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