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 to refference a class blueprint in another blueprint?

Hello, I am trying to get a raft in my scene to attach to my character controller when it overlaps the trigger on it's blueprint however I seem to be unable to find a way to tag my character controller effectively in the blueprint to get this to work effectively. I know i'm probably making some dumb mistake but hey this is a learning experience! :D

Thanks! :)

Product Version: UE 4.9
Tags:
more ▼

asked Oct 10 '15 at 10:28 PM in Blueprint Scripting

avatar image

tekkhi
0 1 2 2

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

2 answers: sort voted first

You need to get the overlapping actor(your character object) and CastTo the type of actor is is. If you're using OnComponentBeginOverlap it will be the Other Actor

In the example below, the CastTo will fail for all overlapping actors that are not of the class BP_FirstPersonCrew

alt text

more ▼

answered Oct 10 '15 at 10:56 PM

avatar image

Wobbleyheadedbob
68 6 9 8

avatar image tekkhi Oct 10 '15 at 11:02 PM

Thanks! That helps alot, now just how do I use that to select it as a target when I have the attach to node up? Thanks :)

alt text

screenshot_12.png (70.6 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Drag the As Side Scroller Character output of your cast to the In Parent input of your AttachTo node.

more ▼

answered Oct 12 '15 at 10:25 AM

avatar image

Wobbleyheadedbob
68 6 9 8

(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