Can't Promote a Interface output to a variable

Good Morning Everyone,

Nothing is broken per se in the project I’m working in. Just a general question

I’ve created a BPI for my player with an output of BP_FirstpersonCharacter So I can access its variables in other blueprints without casting. Standard stuff.

However, I did promote this to a variable off of event begin play but I get an access None error unless I Literally call the interface event every time I need the player value throughout the blueprint. {sketty code}

This is all over my blueprint and I want to know if there is something I’m overlooking or is there a backend reason interface outputs can’t be promoted to a variable from begin play?

Let me know
Thanks

The thing is that you can’t guarantee what actor is spawned first in the world. You should have a master actor to which others subscribe from which you can send dispatches.

Then once the player actor loads have him contact the master actor and tell it “I’m loaded” and then he can call all of the subscribed actors that the main actor is ready and they in turn can set the reference.

It’s basically the observer pattern.

1 Like

Makes sense,

I’ve seen that video before. But yes you’re right, I forgot about the start-up sequence of events