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

Changing Min/MaxVelocity of Emissions gets reset every frame #55

Open
comradeshook opened this issue Feb 5, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@comradeshook
Copy link
Contributor

comradeshook commented Feb 5, 2024

Describe the bug
When you use a for-loop iterator to change Min/Max velocity of an AEmitter's emissions, the change appears to be reset every frame and does not affect the velocity of the emitted particles. I have not tested this for other emission properties yet.

To Reproduce
Define any emitter with at least one Emission, and try using Lua to change the velocities of the emissions. The change does not persist.

Expected behavior
Changes to Min/MaxVelocity should be persistent.

Screenshots
image
This code only prints the initially defined MinVelocity of the emitter, or 0 if undefined. Placing the print after the change displays the correct value, but it is reset before emission.

emitterbug.zip

@comradeshook comradeshook added the bug Something isn't working label Feb 5, 2024
@Causeless
Copy link
Contributor

Please add a test script for this. There's a lot of prerequisite setup I'd need to do to be able to test this reliably

@comradeshook
Copy link
Contributor Author

Ah right, forgot about that; here's a mod for repro. Just spawn the bomb from the 00emitterbug group and observe as the emission doesn't change velocity despite being randomised every frame.
emitterbug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants