Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : ASC not available in the player BP #133

Open
AntonyNifosi opened this issue Apr 29, 2024 · 0 comments
Open

Question : ASC not available in the player BP #133

AntonyNifosi opened this issue Apr 29, 2024 · 0 comments

Comments

@AntonyNifosi
Copy link

I am reading the documentation about GAS to try to understand how it works and implement it in my little project.
First thing is a big thank you, this doc and project is so helpfull !

My question is : When you put your ASC in the player state, like in your GASDoc example, you have pointer to it in the player pawn, but from what I understand for example, the possessed function is called in the player bp when the Super::Possessed is called in the cpp, so at this time when the event possessed is trigger in the blueprint the ASC pointer is not valid yet, and I would like for example do some stuff like Wait for a tag added or removed.
I thought about putting the super call at the end of the possessed function in the cpp but I think the super:: call needs to be done at the begining to have a valid playerstate for example.
So how I am supposed to do to correctly use my ASC from the BP.
For now in the possessed event on my bp I get the ASC from my playerState and it worked well, but is it the correct way of doing it, am I missing something ?

Any advice is welcome ! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant