Slowmotion

    Example script with 2 Loops

  • 015D: set_gamespeed .3 slows down the gamespeed and also the reading process of the scripts
  • wait 50 ms with gamespeed .3 needs ca. a half second
  • An "if_player_defined"-check isn't neccesary, because the script don't include a code depending to the player -char or -actor
  • It makes sense to let the code wait for a second after the key_press check
  • otherwise the key_press check would be repeated to fast
  •  

    {$CLEO .cs}
    :slow_0
    03A4: name_thread 'SLW'
    
    :slow_1
    0001: wait  0 ms
    if
    0AB0:   key_pressed 8//-----------------key = Backspace
    004D: jump_if_false @slow_1
    015D: set_gamespeed  .3
    0001: wait  50 ms
    
    :slow_2
    0001: wait  0 ms
    if
    0AB0:   key_pressed 8//-----------------key = Backspace
    004D: jump_if_false @slow_2
    015D: set_gamespeed  1.0
    0001: wait  1000 ms
    0002: jump @slow_1

 

nothing

    San Andreas

    CLEO Script 2

  • Forum
  • Tutorials
  • screenshots
  • Impressum
  • add my banner
    pic
    pic
    pic
    http://zazmahall.de/index.htm

    pic
nothing