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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to move actor's blueprint to the player's blueprint

Hi, I have a question how to transfer a variable from the actor's blueprint to the player's blueprint. It's exactly the Is Overlapping function. Can you show me how to do it?

Product Version: UE 4.21
more ▼

asked Feb 23 '19 at 07:59 AM in Using UE4

avatar image

9 3 1 2

avatar image Nebula Games Inc Feb 23 '19 at 02:15 PM

Can you clarify this? What do you mean you want to move a "variable" which is "exactly" the "overlapping function"?? The "Is Overlapping" function is not a "variable" it is a function.....it does the work of finding what actors overlap another component/actor. Almost every blueprint class can implement the "Is Overlapping" function. If you are in a blueprint that does not implement this, it is because you can't implement it like within a player controller for example as controllers are never "overlapped" directly by anything. So please clarify what you are trying to achieve.

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

2 answers: sort voted first

Just copy paste and then try to fix error that maypotentially apper, you also need to recreate varables that piece of code uses. Anything you can place on level and classes like PlayerControlelr or GameMode are actor too, so if you use typical actor nodes they should work on any such blueprint.

Other option is reparenting, which changes base class of your blueprint, you can do that in "Class Settings" in blueprint toolbar, this will move entire blueprint to different class base if you want to do so. Ofcorse you may still get errors in progress specially if you reparent to unrelated classes (class in different branch of class tree).

Note that all blueprints are technically the same, there no types of blueprints, but they are classes and they can be derived from other classes, lot of beginners misunderstand that as seeing them in "Content Browser" lacks that information, open "Class viewer" from Window->Devlopment Tools->Class Viewer and try search your blueprints it, it should open your yes. Btw this is how normally classes was viewed ever since very first UE1, and i still wonder myself why epic decided to prioritize placing classes (including C++ classes) in "Content Browser" in UE4

If by "Player blueprint" you mean Player Controller, it is not normal actor (but it part of the world and can have a component as much as any other actor and htey will normally work), you might want to retarget some of the nodes to pawn that it controls and you can get reference to it via "Get Controlled Pawn". Same goes with game mode which is actor that controls entire flow of the game.

more ▼

answered Feb 23 '19 at 09:32 AM

avatar image

36.6k 931 169 1111

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

If you need to handle overlap from a non-Actor object, then You must handle it in an Actor object and then call a function in the non-Actor object from there.

more ▼

answered Feb 23 '19 at 07:39 PM

avatar image

3.8k 18 20 20

(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