Can't reference objects in character

Hello,

I am trying to reference an actor in my 2DSideScrollerCharacter blueprint. The problem is that I get this message when I try to set the default value of that actor:

“Editing this value in a Class Default Object is not allowed.”

I tried making it a class instead of an object but it didn’t work because I need to call a function in that other actor.

Thank you.

Hey @Kenano1234567890!

Can you show us what it looks like in the code? Also what object is attempting to call on the 2DSideScrollerCharacter?

Get back to us with just a little more detail, pictures are important here! :slight_smile:

1 Like

Hi,

Thanks for responding.

Here is a picture

Thanks

i wonder if the “expose on spawn is giving you issues”
also you don’t need the cast.

Hi,

I tried it without the cast earlier and the same thing happened. Heres the image without expose on spawn too

Maybe its a problem with the 2DSideScrollerCharacter?

Thanks

is it abstract or an interface?
or is the variable a local variable instead of class variable?
also maybe try disabling “instance editable” but i don’t think that’s the issue.

If you don’t mind, what is a local variable? And what is abstract or interface?

Ok I got it to work using this.

Thanks a lot I really appreciate the help.

1 Like

i’d recommend you to check out the basics of programming language. it might help you avoid issues in the future.

1 Like