Thanks, this was helpful. I have been stuck still though on the next step of this and struggling over the past three days or so!
I was able to get a reference of the specific actor in question and then cast to that actor’s blueprint and set a particular variable on that actor only without it influencing other actors in its blueprint. Step 1 complete. I can reference that actor in the blueprint where I set it up.
My issue is that I have three separate blueprints/actors where the reference the specific actor above needs to be re-used. In the final step, I need to use the same object reference I had stored in step 1. But no matter what I do I can’t seem to figure out working steps for this.
So I can identify the actor in question in blueprint no.1, get a reference to that actor and cast to that actor’s blueprint (blueprint 2) and change only that actor’s variables.
But the issue comes in using that same actor’s reference in another blueprint - basically using the reference I stored from the first blueprint to identify the specific actor, and calling that reference from other blueprints.
So my steps are:
Blueprint 1: Store a reference to the specific actor from blueprint2 and update the actor’s variable (which is stored in blueprint2) - DONE
Blueprint 2: No real further action needed at this point
Blueprint 3: Needs to check status of the specific actor in Blueprint 2 - the one whose reference I stored in the first blueprint. In order to do this it needs to use the same actor’s/object reference, which is stored in Blueprint 1. This is where I stumble. Plugging the reference from blueprint 1 as the object for the cast.
I have so far tried:
- In Blueprint 3, casting to blueprint 1 and getting the reference to then use as I see fit in Blueprint3. However this did not work for some reason.
- Given the above not working, I have also tried doing the same as above, but creating an actor variable in Blueprint 3 which mirrors the same name as the reference created in Blueprint 1, and adding this as the object reference instead. My thinking was that as the variables shared the same name, this might work. Also didn’t work though.
Pulling my hair out, agghh!
I can cast between multiple blueprints, I can reference between multiple blueprints, but the issue for me seems to be when this specific actor reference which has been created on an event of some kind needs to be shared between multiple blueprints using a variable reference created from that event. I am sure I am doing something silly.
Any ideas?
And thank you!