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"

Why isn't working?

alt text can anyone explaing why this code is not working? the trace just go through the object?

Product Version: UE 4.10
Tags:
2016-03-04.png (335.5 kB)
more ▼

asked Mar 04 '16 at 04:41 PM in Blueprint Scripting

avatar image

Lathost
5 7 11 13

avatar image Sean L ♦♦ STAFF Mar 04 '16 at 05:01 PM

Hello,

Could you provide a screenshot of the collision settings for your bp_big_door_key?

avatar image Lathost Mar 04 '16 at 05:06 PM

alt text sorry for no cropoing but don't have access to a cropping tool on this computer. it is the collision settings on the right there right? everything is on default.

2016-03-04 (1).png (478.2 kB)
avatar image Sean L ♦♦ STAFF Mar 04 '16 at 06:21 PM

No problem. Have you tried checking the Trace Complex boolean that is located on the Line Trace by Channel node? Depending on how you have your key mesh set up, this may be necessary. Go ahead and give that a shot and see if that helps.

avatar image Lathost Mar 04 '16 at 07:02 PM

still nothing man! .....

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

1 answer: sort voted first

Are you sure you want to use CameraManager for location and forward vector? If you want to get player location and rotation you should probably use GetPlayerPawn. Depending on how your Pawn is set up you might need to use GetPlayerController > GetControlRotation > forward vector.

Edit: Just noticed you have it inside Character class. In this case you can even call GetActorLocation directly.

more ▼

answered Mar 04 '16 at 07:19 PM

avatar image

phoboz
1k 38 13 60

avatar image Lathost Mar 04 '16 at 07:25 PM

That did not work either, I tried with this method but nothing still...alt text

2016-03-04 (2).png (304.0 kB)
avatar image phoboz Mar 04 '16 at 07:44 PM

This is what I had in mind:

alt text

Also, did you set this Character class as Pawn in your GameMode?

capture.png (82.9 kB)
avatar image Lathost Mar 04 '16 at 07:49 PM

with that method the trace does not come from the camera but in the center of the player, but it did not work either, do you mean default pawn class? yes I have set my player through there

avatar image phoboz Mar 04 '16 at 07:56 PM

Ah, yes, you're right about that trace start, forgot it'll go from the center. Well, if you can see the trace lines correctly, then it should be set up OK.

Try this and see if you get any outputs:

alt text

capture.png (96.3 kB)
avatar image Lathost Mar 04 '16 at 08:00 PM

Yes it can find everything! so whats wrong with this then?alt text

2016-03-04 (3).png (306.2 kB)
avatar image phoboz Mar 04 '16 at 08:12 PM

Ok. Is it detecting the key with the simple print out? If so, are you sure the key in your level is, in fact, the Blueprint and not just a Static Mesh dragged from Content Browser?

avatar image Lathost Mar 04 '16 at 08:14 PM

wow! didn't even realise that I had renamed it, but now I have learned......

(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