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

feat(docs/natives/RENDER_SCRIPT_CAMS): Renamed and explained the 4th … #1146

Merged
merged 6 commits into from
Aug 6, 2024

Conversation

koketoo
Copy link
Contributor

@koketoo koketoo commented Jul 28, 2024

No description provided.

Comment on lines 13 to 18
## Parameters
* **render**: Whether to render the cams or not.
* **ease **: If true it will make a smooth transition between the current camera and the new rendered camera.
* **easeTime **: The in milliseconds for the transition to happen.
* **easeCoordsAnim**: If false it will only do the smooth transition to the rotation and the coords will be set instantly.
* **p4**: Doesn't seem to change anything.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Param section should go after the added param.

Comment on lines 13 to 18
## Parameters
* **render**: Whether to render the cams or not.
* **ease **: If true it will make a smooth transition between the current camera and the new rendered camera.
* **easeTime **: The in milliseconds for the transition to happen.
* **easeCoordsAnim**: If false it will only do the smooth transition to the rotation and the coords will be set instantly.
* **p4**: Doesn't seem to change anything.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to use something more general and add what value is used by default in decompiled scripts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just that, if ease is true this param will change the behaviour in the transition

Copy link
Contributor

@colistro123 colistro123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there, requested some changes 😊

@@ -8,22 +8,15 @@ ns: CAM
void RENDER_SCRIPT_CAMS(BOOL render, BOOL ease, int easeTime, BOOL p3, BOOL p4);
Copy link
Contributor

@colistro123 colistro123 Jul 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where's easeCoordsAnim, which is p3? This is why the checks are failing. The parameter section has to match these.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, now I see thanks

CAM/RenderScriptCams.md Outdated Show resolved Hide resolved
CAM/RenderScriptCams.md Outdated Show resolved Hide resolved
CAM/RenderScriptCams.md Outdated Show resolved Hide resolved
@AvarianKnight AvarianKnight merged commit d5e868e into citizenfx:master Aug 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants