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. 

Problem with PowerUps

alt text

alt text

So, my problem is... It always fails to cast to the other blueprint, the upper blueprint is called Block, and the second one is called Blueprint_BoxPowerup, the problem here is that when my character touches the "powerup", it automatically fails to cast to the other blueprint, and it doesn't go to the BlockGet? variable, and then destroying the actor, and as it never activates the variable, the box doesn't simulate physics. So I needed help here with that. Thank you.

Product Version: UE 4.8
problem1.png (64.7 kB)
problem2.png (134.5 kB)
more ▼

asked Nov 14 '15 at 11:28 PM in Blueprint Scripting

avatar image

Sinõr Oktoberfest
1 2 2

avatar image zacharymwade Nov 15 '15 at 02:27 AM

First tip, do not use Event Tick for this. It is less efficient than just calling a method and other than that..did you make sure the other blueprint is actually derived from Block?

avatar image Sinõr Oktoberfest Nov 15 '15 at 12:54 PM

Yes, I made sure, I destroyed and replaced Cast to Block, re-did all from the scratch, and for some reason, it always fails to cast...

avatar image Sinõr Oktoberfest Nov 16 '15 at 06:12 PM

If someone has any ideas, please try to help, I'm stuck on my project just because of this...

avatar image zacharymwade Nov 16 '15 at 08:12 PM

If you can, upload a small project to google drive/dropbox/something that works just like your current set up. That way, I can deduce what the problem is. Based off your current information, I really just can't figure it out.

avatar image Sinõr Oktoberfest Nov 16 '15 at 10:43 PM

Sorry, but I won't do that, the problem is very simple, I just needed a answer for the following problem: I have 2 blueprints, one can't cast info to another for some unknown reason, I needed help in an alternate way to cast info from a blueprint to another and that works.

avatar image zacharymwade Nov 16 '15 at 10:51 PM

Welp buddy, then you're outta luck. I've asked you to make sure that the other actor is derived from the block class and you said it was. There are very few reasons that a C-style cast will fail and under the hood, thats all a blueprint cast is. Therefor, without being able to shift through the problem...I can't help you and I doubt many other people can. It is asking us to solve a problem with a missing piece.

For the record, all cast types will fail if the other blueprint is not derived from the block blueprint. That is also about the only reason any cast "would" fail unless this is a bug, but that is doubtful as I haven't seen a cast bug in ages and it would affect all cast considering they're derived from the same logic.

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

1 answer: sort voted first

Couldn't you simply make the setup all within the level blueprint? When the player overlaps the box, set simulate physics to the cube and destroy the powerup actor. I'm not sure that you would even need to cast to pull this off, depending on what else this cube is doing of course.

more ▼

answered Mar 29 '16 at 05:41 PM

avatar image

170 35 29 54

(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