Cam::renderScriptCams: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
ease - smooth transition between the camera's positions<br>easeTime - Time in milliseconds for the transition to happen<br><br>If you have created a script (rendering) camera, and want to go back to the <br>character (gameplay) camera, call this native with render set to false.<br>Setting ease to true will smooth the transition. | ease - smooth transition between the camera's positions<br>easeTime - Time in milliseconds for the transition to happen<br><br>If you have created a script (rendering) camera, and want to go back to the <br>character (gameplay) camera, call this native with render set to false.<br>Setting ease to true will smooth the transition. | ||
p3 freezes the previous/gameplay camera when easing is turned on. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">mp.game.cam.renderScriptCams(render, ease, easeTime, p3, p4);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.cam.renderScriptCams(render, ease, easeTime, p3, p4);</syntaxhighlight> | ||
Latest revision as of 18:16, 4 August 2020
ease - smooth transition between the camera's positions
easeTime - Time in milliseconds for the transition to happen
If you have created a script (rendering) camera, and want to go back to the
character (gameplay) camera, call this native with render set to false.
Setting ease to true will smooth the transition.
p3 freezes the previous/gameplay camera when easing is turned on.
Syntax
mp.game.cam.renderScriptCams(render, ease, easeTime, p3, p4);
Required Arguments
- render: Boolean
- ease: Boolean
- easeTime: int
- p3: Boolean
- p4: Boolean
Return value
- Undefined
Example
// todo