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

Passing structs to scripts? #12

Open
ghost opened this issue Oct 20, 2017 · 1 comment
Open

Passing structs to scripts? #12

ghost opened this issue Oct 20, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 20, 2017

I see that I cannot declare arguments for a script to accept struct references like I can for functions. Can this ever be a feature?

@positively-charged
Copy link
Owner

I don't see this feature being implemented at this time. The way a script is executed, there is little type checking done. Functions like ACS_Execute() are designed to pass integers to scripts. If scripts could have reference parameters, that would mean you could pass some random integers that are then reinterpreted as reference values, which could lead to invalid references or valid but unintended references.

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