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

Engine Methods and variables not recognized in scripts #27

Open
simao-moreira opened this issue Dec 19, 2024 · 1 comment
Open

Engine Methods and variables not recognized in scripts #27

simao-moreira opened this issue Dec 19, 2024 · 1 comment

Comments

@simao-moreira
Copy link

Engine methods and variables throw nil error with running.
VS Code not recognizing them is expected, but from the examples and the tutorial video, i was expecting all the methods to work.

self.world
self.actor:CreateComponent()
Input.IsKeyDown()
Audio.PlaySound2D()
Renderer.AddWidget()

All of them throw unassigned reference.
Anyone know of something i can try or missing for this?

@mholtkamp
Copy link
Owner

What examples were you looking at? CreateComponent and Renderer.AddWidget don't exist any more. self.world, Input.IsKeyDown(), and Audio.PlaySound2D() should still exist though.

I just uploaded a bunch of documentation that should be up to date:
https://github.com/mholtkamp/octave/blob/main/Documentation/Lua/README.md

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

2 participants