Advertisement
Guest User

Untitled

a guest
Jun 29th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. local function timeOscillate(maxscale, minscale, speedfactor)
  2. if not speedfactor then speedfactor = 1 end
  3. return ((maxscale + minscale)/2 + FixedMul((maxscale - minscale), sin(leveltime*ANG1*speedfactor)/2))
  4. end
  5.  
  6. //you could input "timeOscillate(13*FRACUNIT/10, 9*FRACUNIT/10)" (or you could do "timeOscillate(13*FRACUNIT, 9*FRACUNIT)/10" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement