-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Default script - does nothing. local activate_time = {} local music_playing = false function thriller_init(e) CharacterControlManual(e) SetAnimationSpeed(e, 0.85) SetAnimationFrames(22, 154) LoopAnimation(e) activate_time[e] = nil end function thriller_main(e) if not music_playing then LoadGlobalSound("audiobank\\music\\thriller.ogg", 1) PlayGlobalSound(1) music_playing = true end if activate_time[e] == nil then activate_time[e] = g_Time + 20000 + math.random() * 20 elseif g_Time > activate_time[e] then activate_time[e] = math.huge StopAnimation(e) SetAnimationFrames(155, 3495) PlayAnimation(e) end MoveWithAnimation(e, 1) end