Перейти к содержанию

Graphics::startScreenEffect

Материал из RAGE MP Wiki Archive
Версия от 21:17, 22 февраля 2019; imported>Kar
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

duration - is how long to play the effect for in milliseconds. If 0, it plays the default length
if loop is true, the effect wont stop until you call _STOP_SCREEN_EFFECT on it. (only loopable effects)

Example and list of screen FX: www.pastebin.com/dafBAjs0

Syntax

<syntaxhighlight lang="javascript">mp.game.graphics.startScreenEffect(effectName, duration, looped);</syntaxhighlight>

Required Arguments

  • effectName: String
  • duration: int
  • looped: Boolean

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also