StartCameraFade: Difference between revisions

From Onset Developer Wiki
Kuzkay (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 15: Line 15:
== Example ==
== Example ==
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
StartCameraFade(1.0, 0.0, 4.0, "#000")
StartCameraFade(1.0, 0.0, 4.0, RGB(0, 0, 0))
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 09:43, 5 January 2020

StartCameraFade

Type: Function
Context: Client
Introduced: v1.0

Description

Smoothly fade in or out, Setting CameraFade will overwrite any other started camera fades which were called before

Syntax

StartCameraFade(FromAlpha, ToAlpha, Duration [, HexColor])

Parameters

  • FromAlpha
    Starting alpha (0-1)
  • ToAlpha
    Alpha you want to fade to (0-1)
  • Duration
    Duration of the fade in seconds
  • HexColor (optional)
    Hex color of the fade

Return Value

  • __EDIT_ME__

Example

StartCameraFade(1.0, 0.0, 4.0, RGB(0, 0, 0))

See also

__EDIT_ME__