local delay = {} function quest_obj_init(e) delay[e] = 25 rotation = 0 end function quest_obj_main(e) CollisionOff(e) GravityOff(e) if GetPlayerDistance(e) < 500 then if GetTimer(e) > delay[e] then StartTimer(e) SetRotation(e,0,rotation,0) rotation = rotation + 5 if rotation > 360 then rotation = 0 end end else StartTimer(e) end if GetPlayerDistance(e) < 80 and g_PlayerHealth > 0 then PlaySound(e,0) SetEntityHealth(e,0) Hide(e) SwitchScript(e,"default.lua") --ActivateIfUsed(e) end end