-
Notifications
You must be signed in to change notification settings - Fork 2.3k
tweak(native-decls): update documentation for trains #3353
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
base: master
Are you sure you want to change the base?
Conversation
**NOTE**: This native doesn't guarantee the persistence of the entity. | ||
When used on trains, this native will recursively call onto all attached carriages. | ||
|
||
**NOTE**: When used with `KeepEntity` (2) this native only guarantees that the ***server*** will not delete the entity, client requests to delete the entity will still work perfectly fine. |
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.
if entity is created serverside, won't sv_protectServerEntities
convar prevent the client from deleting the entity?
If yes, this note may cause some misunderstanding.
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.
if entity is created serverside, won't
sv_protectServerEntities
convar prevent the client from deleting the entity?If yes, this note may cause some misunderstanding.
At this moment trains are unable to be created on the server I misread. But yes, the client will be unable to delete it
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.
GitHub is little funky with the comment creation, but I meant the line 30
exclusively.
Goal of this PR
Cleanup the wording in the native declaration to make it less confusing, and add information about how this works with trains
Is confusing wording, replaced with what is actually defined behavior (that the server will not delete the entity in its normal garbage collection)
This PR applies to the following area(s)
Server
Successfully tested on
N/A
Checklist