-
-
Notifications
You must be signed in to change notification settings - Fork 464
Add new function spawnVehicleFlyingComponent #3592
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
Merged
TheNormalnij
merged 12 commits into
multitheftauto:master
from
FileEX:feature/vehicle_flyingcomponents
Oct 8, 2024
Merged
Add new function spawnVehicleFlyingComponent #3592
TheNormalnij
merged 12 commits into
multitheftauto:master
from
FileEX:feature/vehicle_flyingcomponents
Oct 8, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TracerDS
suggested changes
Aug 5, 2024
TracerDS
reviewed
Aug 10, 2024
@FileEX Please, resolve the conflicts. |
Done |
tederis
requested changes
Sep 13, 2024
tederis
reviewed
Sep 13, 2024
tederis
reviewed
Sep 13, 2024
tederis
reviewed
Sep 13, 2024
tederis
approved these changes
Sep 13, 2024
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
Dutchman101
pushed a commit
that referenced
this pull request
Oct 13, 2024
@FileEX documentation |
It's already done |
add wiki example |
A link was missing in the template. I've added it |
This was referenced Nov 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #2121 and probably #2128
This PR adds a new function
spawnVehicleFlyingComponent
. With this function, we can spawn falling components along with their physics. This enables the creation of realistic scenarios such as car accidents on servers, advanced systems like potholes in roads, and more.Example video: https://www.youtube.com/watch?t=71&v=B5relHf21lo&feature=youtu.be
Once the PR is merged, I will create full documentation on the wiki for various nodes for vehicle classes.
Syntax
nodeIndex
- Specifies the component to be created (ranging from 1 to 25). Depending on the vehicle, these can be different components such as wheels, fenders, bicycle handlebars, helicopter propellers, train carriages, and many more.collisionType
- Specifies the type of collision for the component, by default it is selected based on the nodeIndex.removalTime
- The time in milliseconds after which the created component will be removed (it must be removed as it is a temporary object).The limit for temporary objects with this function is 150, and their default removal time depends on their quantity (unless we set our own via the
removalTime
parameter).