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

Multiple states from different files? #30

Open
markusstephanides opened this issue Jul 9, 2021 · 5 comments
Open

Multiple states from different files? #30

markusstephanides opened this issue Jul 9, 2021 · 5 comments

Comments

@markusstephanides
Copy link

Hi!

Thanks for the library!

In our use case we would need to be able to load multiple lua scripts which all use the same state class but not the same state. If I understood the code correctly, currently there is only one state per state class possible.

Is that correct or is there a way around it?

@rdeioris
Copy link
Owner

rdeioris commented Jul 9, 2021

Hi, this patch should do the trick: #27

(will be merged soon)

@markusstephanides
Copy link
Author

Thanks!

I ended up finding that PR and using it for my own fork to enable support for UE 4.27+ if you want to check it out :)
https://github.com/markusstephanides/LuaMachine

@tfabretti
Copy link

Hey, mate, sorry to bother you but did you get time to look at that PR or should we still fork to try to merge it ourselves ?

@rdeioris
Copy link
Owner

@tfabretti dynamic states have been merged some week ago: https://github.com/rdeioris/LuaMachine/blob/master/Source/LuaMachine/Public/LuaBlueprintFunctionLibrary.h#L416

a bunch of features are still not exposed to blueprints, but eventually you should be able to use them in C++

@tfabretti
Copy link

Oh, that's great ! I'm gonna take a look at that to understand how it works. Thank you <3

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

3 participants