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"

Problem with Blueprint Cast to a different Blueprint.

Hello everyone, i've come across a problem that i've been desperately trying to pass through for 2 days in a row now, to the point of reaching the second page of google, can you imagine? What i'm trying to do is really simple, or rather.. Seemed really simple before i started trying to do it.

I'm trying to change a Blueprint's boolean variable through a different Blueprint, a Widget Blueprint to be exact. Here's what it looks like: alt text

As you can see the Boolean variable on the blueprint is set to Editable. And here's what the Widget Blueprint looks like: alt text alt text alt text

These two last images are from the same widget blueprint, and as you can see for some reason the reference to "Player Bullet Low Velocity" says "Editing this value is not allowed" at the bottom left corner, and the "Set Boolean to active" Node says "Failed to find variable property" Is this normal, or is this the reason i can't seem to get my really simple thing to work?

Last but not least, here's when i attempt to execute the Blueprint, It simply is ignored. alt text

I clicked the Widget's blueprint button countless times but it still shows a cast failed.

However the Widget is not faulty, i can use buttons to change level or execute console commands without problems.

Could i get some feedback on this please? It's really frustrating. Thanks for your time! -Staus

Product Version: UE 4.8
more ▼

asked Jul 03 '15 at 11:30 PM in Blueprint Scripting

avatar image

3 1 4 4

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

1 answer: sort voted first


You need initialise your a variable PlayerBulletLowVelocity.

alt text

alt text

cast01.png (286.0 kB)
cast02.png (200.4 kB)
more ▼

answered Jul 04 '15 at 09:28 AM

avatar image

8.5k 254 42 400

avatar image Staus Jul 04 '15 at 10:10 AM

I'm going to try that right now, Thanks for the fast answer you guys are amazing!

EDIT: I can't make a "Create widget" node on my player bullet blueprint. :/

avatar image Staus Jul 04 '15 at 10:40 AM

I forgot to mention, my blueprint "PlayerBulletLowVelocity" is an actor blueprint, not a widget, it spawns everytime the player presses left mouse button. What i'm trying to do is make my optionscreen button change the visibility of some components attached to the PlayerBullet, which i already know how to do it's just that i have no idea how to connect them together.

avatar image svv3dUDN Jul 04 '15 at 12:37 PM

If you use FPS template, do next

To widget add this

alt text

To projectile add this

alt text

alt text

Initialize of a variable and add widget to the viewport you must do in character blueprint.

alt text

And add modification to spawn projectile.

alt text

After press on the button, your bullet will be move with low speed

bullet01.png (240.8 kB)
bullet02.png (273.1 kB)
bullet04.png (244.3 kB)
bullet03.png (248.9 kB)
bullet05.png (299.4 kB)
avatar image Staus Jul 04 '15 at 02:45 PM

It's working! thank you so much!

(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