Unable to cast to actor to send level blue print variable

Hi folks, i saw that i was impossible for a blueprint to access level blueprint variable, but that the level blue print is able to modify blue print of another blue print with casting as i understood,

this work well in many case where i have the branch ‘other actor’ to put to object,

but in this case i’m in level blueprint and i try to send the variable of the offset scrolling to the laser offset scrolling variable of the laser blue print,

but i’ll dont know what to put in input to object of the cast,

the laser is and actor blue print,

any help is welcome,

thanks a lot,

I’ve tried the ‘eye’ option but this send variable to other blue print child not to other bp,

thanks,

In this scenario, you would need to utilize the “get all actors of class” node and filter with a “for each loop”. Careful, “get all actors of class” can be a resource hog if used incorrectly on event tick.

Also, you can see that casting to “Laser” does not inherit from the bp player class. Is “Laser” a blueprint actor you created?

i have found a solution with creating a base class then creating the child and set the variable,

i’m able to cast the variable from is variable reference and pass it but the bp fail and tell me that he was unable to cast,

btw the variable is not modified on blue print beam

hi folks, so i digged this way and saw that level blue print is really not a nice place to be, so i continued my quest to move camera, and the fact is that camera actor cannot be droped to blue print,

So, i’ll continue my quest, and finally created my own camera compoment and setting it to viewport, then i’m able to get the reference stocked, and do (i’ll think) what ever i want,

And off course i will have this offset of scrolling in laser bp to calculate my shoot,

no more need to be in level blue print ; ))))

thanks a lot,

i close the thread