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

Allow resource loading by Avarascript variable name, not just numeric identifier #232

Open
rherriman opened this issue Sep 20, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@rherriman
Copy link
Member

Consider the example of CSmart, that calls this function in its constructor:

LoadPart(0, 802)

...and this line in rsrc/default.avarascript:

bspMissile = 802

It would be great if we could replace lines like that in CSmart with something similar to LoadPart(0, "bspMissile"), enabling level designers to overwrite the value for bspMissile and as a result the shape of the projectile that is loaded/fired by the player.

@rherriman rherriman added good first issue Good for newcomers enhancement New feature or request labels Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant