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

Inefficient garage opening code #11

Open
qaisjp opened this issue Jun 7, 2020 · 1 comment
Open

Inefficient garage opening code #11

qaisjp opened this issue Jun 7, 2020 · 1 comment

Comments

@qaisjp
Copy link
Contributor

qaisjp commented Jun 7, 2020

https://github.com/multitheftauto/amx/blob/3330655c1c388adc4e97ec365cbb9b644a99445e/amx/client/garages.lua

It should use a colshape, as shown here in the setGarageOpen example.

Could generate colshape based on garage size, but it might be easier to use a colsphere + a static radius.

@theSpool
Copy link

theSpool commented Jun 9, 2020

It would also be faster to store the 50 garage's positions in a table rather than calling the function repeatedly, right?

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