What object do I cast in the cast function?
My problem seems to be quite a simple one, as my casts ALWAYS fail and I think its because I just dont really know what object I am supposed to cast.
I am usually making a reference to self.
I want my weapon to start firing when the Action "InputActionFire" is called by the hero, and therefore I made a tick and then casted to the hero class (object self). After that I "got" the variable I set aside for that and checked it with a branch.... the cast fails tho :(
Thanks in advance
asked Apr 13 '15 at 01:15 PM in Blueprint Scripting
WHen you cast, you cast to ANOTHER BP, not your own, as the Variable is already there.
Here is a quick example.
BP1 - I made a Variable
If I Want it, just drag it out.
In BP2, if I need it I cast.
answered Apr 13 '15 at 01:33 PM
Well I'm not sure what your problem is but here are few examples of casting: https://answers.unrealengine.com/questions/181768/getting-varible-information-from-another-blueprint.html
answered Apr 13 '15 at 01:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here