Casting to an actor variable
I'm trying to make a puzzle game with basic mechanics such as buttons, levers, etc. So i'm trying to make a door blueprint in which i can choose to which mechanic it casts to by making a blueprint in which i can choose the type of actor it spawns and then the door casts to it trough a reference variable. The problem is that i need to know whether or not the actor is active (like if the button is pressed) so i'm trying to figure out a way for the blueprint were i choose the mechanic to cast to the actor variable.
Sorry if it sounds a bit confusing, here is a visual interpretation
I already have most of it set up i'm just curious on how to cast to the actor blueprint in the mechanic blueprint. Thank you.
asked Mar 13 '17 at 07:30 PM in Blueprint Scripting
Ok, i managed to fix it. Instead of trying to let the mechanics blueprint cast to the actors i did it in reverse and let the actors play a custom event in the mechanics blueprint which door casts to.
answered Mar 14 '17 at 01:34 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here