-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Add spawnFlyingComponent & breakGlass arguments for setVehiclePanelState #3572
base: master
Are you sure you want to change the base?
Add spawnFlyingComponent & breakGlass arguments for setVehiclePanelState #3572
Conversation
Well done! |
I added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
#3592 already adds spawnVehicleFlyingComponent so i think this PR should only add breakGlass ? |
The spawnVehicleFlyingComponent function allows you to create components, while the argument in the setVehiclePanelState function allows you to avoid creating them. By default, after calling the function, for example, the bumper is flying, which I showed in the screenshots and it can be annoying. It works exactly the same way as in the case of setVehicleDoorState. This argument is not intended to spawn components, but to not spawn them if someone does not want it, because they are spawned by default |
Sorry for the misunderstanding. You are right, this PR is ok |
This PR adds the
spawnFlyingComponent
argument (defaulting to true) tosetVehiclePanelState
, similar to what is available insetVehicleDoorState
. Additionally, the PR introduces the feature to shatter the windscreen if windscreen_panel is set to 3; currently, the windscreen simply disappears.Added
breakGlass
argument.https://streamable.com/uxpph6
This PR helps avoid frustrating situations, such as when managing a garage of vehicles and changing their models.
Closes #2122