Advertisement
tinyevil

Untitled

Mar 16th, 2019
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. info.effect_container:runFX(
  2.     fx.timescale(
  3.         1.5,
  4.         fx.set(icon_container:scaleX(), 0),
  5.         fx.set(icon_container:scaleY(), 0)
  6.     )
  7.     ..
  8.     fx.lua(function()
  9.         Server:call("loot.collect", {id = reward.loot_id})
  10.     end)
  11.     ..
  12.     fx.timescale(
  13.         2.0,
  14.         fx.set(icon_container:scaleX(), fx.spline(0.6, {0.1, 1.5}, {0.3, 1.15}, 1)),
  15.         fx.set(icon_container:scaleY(), fx.spline(0.6, {0.1, 1.5}, {0.3, 1.15}, 1))
  16.     )
  17.     ..
  18.     (
  19.         fx.wait(0.3)
  20.         ..
  21.         fx.timescale(
  22.             0.2,
  23.             fx.set(icon_container:alpha(), fx.spline(1, 0)),
  24.             fx.set(icon_container:y(), fx.spline(0, -100))
  25.         )
  26.     )
  27.     ..
  28.     fx.lua(component:callback(function()
  29.         icon_container:dispose()
  30.     end))
  31. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement